Skip to content

Commit e30ad6f

Browse files
committed
Tgross feedback tweaks
Co-authored-by: Trevor Gross <[email protected]> Update library/core/src/primitive_docs.rs Co-authored-by: Trevor Gross <[email protected]> Update library/core/src/primitive_docs.rs
1 parent 3fd8c64 commit e30ad6f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

Diff for: library/core/src/primitive_docs.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -1082,9 +1082,8 @@ impl<T> (T,) {}
10821082
/// bits. Please see [the documentation for [`prim@f32`] or [Wikipedia on
10831083
/// half-precision values][wikipedia] for more information.
10841084
///
1085-
/// Note that not all major platforms have hardware support for f16, in which case a
1086-
/// software implementation will be used. This may be slower than expected.
1087-
///
1085+
/// Note that most major platforms will provide `f16` math support by converting to and from
1086+
/// an `f32`, which is usually fairly performant but will not be as fast as using `f32` directly.
10881087
/// *[See also the `std::f16::consts` module](crate::f16::consts).*
10891088
///
10901089
/// [wikipedia]: https://en.wikipedia.org/wiki/Half-precision_floating-point_format
@@ -1184,8 +1183,8 @@ mod prim_f64 {}
11841183
/// as many bits as `f64`. Please see [the documentation for [`prim@f32`] or [Wikipedia on
11851184
/// quad-precision values][wikipedia] for more information.
11861185
///
1187-
/// Note that not all major platforms have hardware support for f128, in which case a
1188-
/// software implementation will be used. This may be slower than expected.
1186+
/// Note that most major platforms do not have hardware support for `f128`, in which case a
1187+
/// software implementation will be used. This can be significantly slower than using `f64`.
11891188
///
11901189
/// *[See also the `std::f128::consts` module](crate::f128::consts).*
11911190
///

0 commit comments

Comments
 (0)