Skip to main content

Module small_float

Module small_float 

Source
Expand description

The 8-bit float size distribution the bins follow.

Constants§

MANTISSA_BITS
The number of bits of the mantissa.
MANTISSA_MASK
The mask of the mantissa.
MANTISSA_VALUE
The value of the hidden high mantissa bit.

Functions§

float_to_uint
Returns the size that the bin with the given index represents.
uint_to_float_round_down
Returns the bin index of the highest bin that can hold size units.
uint_to_float_round_up
Returns the bin index of the lowest bin that can hold size units.