91uint16_t IEEE754_FloatToHalf(
float f);
98float IEEE754_HalfToFloat(uint16_t uHalfPrecision);
106uint16_t IEEE754_DoubleToHalf(
double d);
113double IEEE754_HalfToDouble(uint16_t uHalfPrecision);
118#define IEEE754_UNION_IS_HALF 2
119#define IEEE754_UNION_IS_SINGLE 4
120#define IEEE754_UNION_IS_DOUBLE 8
133IEEE754_union IEEE754_DoubleToSmallestInternal(
double d,
int bAllowHalfPrecision);
141 return IEEE754_DoubleToSmallestInternal(d, 0);
149static inline IEEE754_union IEEE754_DoubleToSmallest(
double d)
151 return IEEE754_DoubleToSmallestInternal(d, 1);