hifloat8
The APIs described in this section are reserved and may be changed or deprecated in the future. You are not advised to use these APIs.
API Definition |
Description |
|---|---|
FromBits() |
Returns the tag used to construct a HiFloat8 object from a bit pattern. |
HiFloat8() |
Default constructor of struct HiFloat8, initialized to zero. |
HiFloat8(uint8_t bits, FromBitsTag) |
Constructor of struct HiFloat8, which constructs an object from the original bit pattern. |
HiFloat8(float f32) |
Constructor of struct HiFloat8, which constructs an object from a float value. |
operator float() |
Converts HiFloat8 to float. |
IsNaN() |
Checks whether the current HiFloat8 value is NaN. |
IsInf() |
Checks whether the current HiFloat8 value is infinite. |
IsZero() |
Checks whether the current HiFloat8 value is zero. |
BitsFromFp32(uint32_t f32) |
Converts the FP32 bit pattern to the HiFloat8 bit pattern. |
isinf(const HiFloat8 &a) |
Checks whether the given HiFloat8 value a is infinite. |
isnan(const HiFloat8 &a) |
Checks whether the given HiFloat8 value a is NaN. |
isfinite(const HiFloat8 &a) |
Checks whether the given HiFloat8 value a is finite. |
min() |
Returns the minimum normalized number of the HiFloat8 data type. |
lowest() |
Returns the minimum finite value of the HiFloat8 data type. |
max() |
Returns the maximum value of the HiFloat8 data type. |
epsilon() |
Returns the machine epsilon value of the HiFloat8 data type. |
round_error() |
Returns the maximum rounding error of the HiFloat8 data type. |
infinity() |
Returns the infinite value of the HiFloat8 type. |
quiet_NaN() |
Returns the quiet NaN value of the HiFloat8 data type. |
signaling_NaN() |
Returns the signaling NaN value of the HiFloat8 data type. |
denorm_min() |
Returns the minimum positive denormalized value of the HiFloat8 data type. |