Skip to content

Commit 22458fc

Browse files
Docs for f16 and f128: correct a typo and add details
1 parent 7f36543 commit 22458fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/core/src/primitive_docs.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1160,7 +1160,7 @@ impl<T> (T,) {}
11601160
///
11611161
/// Note that most common platforms will not support `f16` in hardware without enabling extra target
11621162
/// features, with the notable exception of Apple Silicon (also known as M1, M2, etc.) processors.
1163-
/// Hardware support on x86-64 requires the avx512fp16 feature, while RISC-V requires Zhf.
1163+
/// Hardware support on x86/x86-64 requires the avx512fp16 or avx10.2 features, while RISC-V requires Zfh, and Arm/AArch64 requires FEAT_FP16.
11641164
/// Usually the fallback implementation will be to use `f32` hardware if it exists, and convert
11651165
/// between `f16` and `f32` when performing math.
11661166
///
@@ -1345,7 +1345,7 @@ mod prim_f64 {}
13451345
///
13461346
/// Note that no platforms have hardware support for `f128` without enabling target specific features,
13471347
/// as for all instruction set architectures `f128` is considered an optional feature.
1348-
/// Only Power ISA ("PowerPC") and RISC-V specify it, and only certain microarchitectures
1348+
/// Only Power ISA ("PowerPC") and RISC-V (via the Q extension) specify it, and only certain microarchitectures
13491349
/// actually implement it. For x86-64 and AArch64, ISA support is not even specified,
13501350
/// so it will always be a software implementation significantly slower than `f64`.
13511351
///

0 commit comments

Comments
 (0)