Wheefun I/O Library
0.0.5
Useful I/O Primitives.
|
A half-precision IEEE 754 binary floating point value (binary16). More...
#include <ieee754.h>
Public Attributes | |
struct { | |
wfio_uint16_t significand:10 | |
wfio_uint16_t exponent:5 | |
wfio_uint16_t sign:1 | |
} | bits |
The bit pattern for this number. | |
wfio_sint16_t | si |
The raw signed 16-bit integer representation of this number. | |
wfio_uint16_t | ui |
The raw unsigned 16-bit integer representation of this number. | |
A half-precision IEEE 754 binary floating point value (binary16).
This type arises from IEEE 754-2008 and represents a half-precision floating point number. This can fit within exactly 16 bits and may be used in situations where the range does not exceed ± ~2^15. in total, there are 11 bits of precision in the significand.
wfio_uint16_t wfio_ieee754_b16_t::exponent |
This number's exponent
wfio_uint16_t wfio_ieee754_b16_t::sign |
This number's sign bit.
wfio_uint16_t wfio_ieee754_b16_t::significand |
This number's significand.