Skip to content

Commit aabe100

Browse files
ultrabeartgross35
andauthored
Update library/core/src/primitive_docs.rs
Co-authored-by: Trevor Gross <t.gross35@gmail.com>
1 parent 3fd8c64 commit aabe100

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/core/src/primitive_docs.rs

Lines changed: 2 additions & 3 deletions
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

0 commit comments

Comments
 (0)