Skip to content

Commit 3da6055

Browse files
committed
Add footnote
1 parent 6e8d21e commit 3da6055

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/core_simd/src/core_simd_docs.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ Instead, they map to a reasonable implementation of the operation for the target
3030

3131
Consistency between targets is not compromised to use faster or fewer instructions.
3232
In some cases, `std::arch` will provide a faster function that has slightly different behavior than the `std::simd` equivalent.
33-
For example, [`_mm_min_ps`](`core::arch::x86_64::_mm_min_ps`) can be slightly faster than [`SimdFloat::simd_min`], but does not conform to the IEEE standard also used by [`f32::min`].
33+
For example, [`_mm_min_ps`](`core::arch::x86_64::_mm_min_ps`)[^1] can be slightly faster than [`SimdFloat::simd_min`], but does not conform to the IEEE standard also used by [`f32::min`].
3434
When necessary, [`Simd<T, N>`] can be converted to the types provided by `std::arch` to make use of target-specific functions.
3535

3636
Many targets simply don't have SIMD, or don't support SIMD for a particular element type.
3737
In those cases, regular scalar operations are generated instead.
38+
39+
[^1]: `_mm_min_ps(x, y)` is equivalent to `x.simd_lt(y).select(x, y)`

0 commit comments

Comments
 (0)