Binary classification and canonicality queries #
The non-signaling queries of IEEE 754-2019 §5.7.2 inspect the complete descriptor. They also apply to custom biases and finite encodings: an all-ones exponent can be normal, and the FNUZ negative-zero word is a quiet NaN.
Every word in these implicit-leading-bit layouts is a canonical interchange encoding. This includes every NaN payload; canonicality does not mean choosing the library's preferred NaN or repacking through Lean's logical model.
@[inline]
A normal value is finite and has a nonzero biased exponent field.
Instances For
@[inline]
Classify without quieting NaNs or raising exceptions, using the complete descriptor.
Instances For
@[inline]
Every exact-width word of an implicit-leading-bit binary layout is canonical.