@@ -127,6 +127,7 @@ pub trait FromNativeSample: Sized + Copy + Default + 'static {
127
127
128
128
/// Convert all values from the slice into this type.
129
129
/// This function exists to allow the compiler to perform a vectorization optimization.
130
+ /// Note that this default implementation will **not** be vectorized by the compiler automatically.
130
131
#[ inline]
131
132
fn from_f16s ( from : & [ f16 ] , to : & mut [ Self ] ) {
132
133
assert_eq ! ( from. len( ) , to. len( ) , "slices must have the same length" ) ;
@@ -137,6 +138,7 @@ pub trait FromNativeSample: Sized + Copy + Default + 'static {
137
138
138
139
/// Convert all values from the slice into this type.
139
140
/// This function exists to allow the compiler to perform a vectorization optimization.
141
+ /// Note that this default implementation will be vectorized by the compiler automatically.
140
142
#[ inline]
141
143
fn from_f32s ( from : & [ f32 ] , to : & mut [ Self ] ) {
142
144
assert_eq ! ( from. len( ) , to. len( ) , "slices must have the same length" ) ;
@@ -147,6 +149,7 @@ pub trait FromNativeSample: Sized + Copy + Default + 'static {
147
149
148
150
/// Convert all values from the slice into this type.
149
151
/// This function exists to allow the compiler to perform a vectorization optimization.
152
+ /// Note that this default implementation will **not** be vectorized by the compiler automatically.
150
153
#[ inline]
151
154
fn from_u32s ( from : & [ u32 ] , to : & mut [ Self ] ) {
152
155
assert_eq ! ( from. len( ) , to. len( ) , "slices must have the same length" ) ;
0 commit comments