8[[nodiscard]] MAYAFLUX_API
float half_to_float(uint16_t bits)
noexcept;
16[[nodiscard]] MAYAFLUX_API uint16_t
float_to_half(
float value)
noexcept;
26 uint32_t bits,
int exponent_bits,
int mantissa_bits)
noexcept;
36 double value,
int exponent_bits,
int mantissa_bits)
noexcept;
uint32_t encode_small_float(double value, int exponent_bits, int mantissa_bits) noexcept
Encode a double as a binary floating point pattern with the given field widths.
float half_to_float(uint16_t bits) noexcept
IEEE 754 binary16 to binary32.
double decode_small_float(uint32_t bits, int exponent_bits, int mantissa_bits) noexcept
Decode a binary floating point pattern with the given field widths.
uint16_t float_to_half(float value) noexcept
IEEE 754 binary32 to binary16, rounding to nearest with ties to even.