@@ -74,19 +74,17 @@ none are proposed in this RFC.
7474## Using scalable vectors  
7575[ using-scalable-vectors ] : #using-scalable-vectors 
7676
77- Scalable vector types correspond to vector registers in hardware with unknown
78- size at compile time. However, it will be a known and fixed size at runtime.
79- Additional properties could be known during compilation, depending on the
80- architecture, such as a minimum or maximum size or that the size must be a
81- multiple of some factor.
82- 
83- As previously described, users will not define their own scalable vector types
84- and instead use intrinsics from ` std::arch ` , and this RFC is not proposing any
85- such intrinsics, just the infrastructure. However, to illustrate how the types
86- and intrinsics that this infrastructure will enable can be used, consider the
77+ From a user's perspective, writing code for scalable vectors isn't too different
78+ from when writing code with a fixed sized vector. To illustrate how the types
79+ and intrinsics that this infrastructure will enable could be used, consider the
8780following example that sums two input vectors:
8881
8982``` rust 
83+ use  std :: arch :: aarch64 :: {
84+     //  These intrinsics and types are not proposed by this RFC
85+     svcntw, svwhilelt_b32, svld1_f32 , svadd_f32_m, svst1_f32 
86+ };
87+ 
9088fn  sve_add (in_a :  Vec <f32 >, in_b :  Vec <f32 >, out_c :  & mut  Vec <f32 >) {
9189    assert_eq! (in_a . len (), in_b . len ());
9290    assert_eq! (in_a . len (), out_c . len ());
@@ -126,9 +124,6 @@ fn sve_add(in_a: Vec<f32>, in_b: Vec<f32>, out_c: &mut Vec<f32>) {
126124}
127125``` 
128126
129- From a user's perspective, writing code for scalable vectors isn't too different
130- from when writing code with a fixed sized vector.
131- 
132127# Reference-level explanation  
133128[ reference-level-explanation ] : #reference-level-explanation 
134129
0 commit comments