Skip to content

Commit 9de05cc

Browse files
improve comments, update to new half version
1 parent 284da36 commit 9de05cc

File tree

3 files changed

+88
-87
lines changed

3 files changed

+88
-87
lines changed

Cargo.lock

Lines changed: 51 additions & 64 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/block/samples.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ pub trait FromNativeSample: Sized + Copy + Default + 'static {
127127

128128
/// Convert all values from the slice into this type.
129129
/// 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.
130131
#[inline]
131132
fn from_f16s(from: &[f16], to: &mut [Self]) {
132133
assert_eq!(from.len(), to.len(), "slices must have the same length");
@@ -137,6 +138,7 @@ pub trait FromNativeSample: Sized + Copy + Default + 'static {
137138

138139
/// Convert all values from the slice into this type.
139140
/// 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.
140142
#[inline]
141143
fn from_f32s(from: &[f32], to: &mut [Self]) {
142144
assert_eq!(from.len(), to.len(), "slices must have the same length");
@@ -147,6 +149,7 @@ pub trait FromNativeSample: Sized + Copy + Default + 'static {
147149

148150
/// Convert all values from the slice into this type.
149151
/// 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.
150153
#[inline]
151154
fn from_u32s(from: &[u32], to: &mut [Self]) {
152155
assert_eq!(from.len(), to.len(), "slices must have the same length");

0 commit comments

Comments
 (0)