doc note that f16 and f128 hardware support is limited

This commit is contained in:
ultrabear 2024-04-13 04:15:10 -07:00
parent f96442b448
commit 3fd8c6432d
No known key found for this signature in database
GPG Key ID: 6A5BDAF57DFFD6A0

View File

@ -1082,6 +1082,9 @@ impl<T> (T,) {}
/// bits. Please see [the documentation for [`prim@f32`] or [Wikipedia on
/// half-precision values][wikipedia] for more information.
///
/// Note that not all major platforms have hardware support for f16, in which case a
/// software implementation will be used. This may be slower than expected.
///
/// *[See also the `std::f16::consts` module](crate::f16::consts).*
///
/// [wikipedia]: https://en.wikipedia.org/wiki/Half-precision_floating-point_format
@ -1181,6 +1184,9 @@ mod prim_f64 {}
/// as many bits as `f64`. Please see [the documentation for [`prim@f32`] or [Wikipedia on
/// quad-precision values][wikipedia] for more information.
///
/// Note that not all major platforms have hardware support for f128, in which case a
/// software implementation will be used. This may be slower than expected.
///
/// *[See also the `std::f128::consts` module](crate::f128::consts).*
///
/// [wikipedia]: https://en.wikipedia.org/wiki/Quadruple-precision_floating-point_format