40 operator float(
void)
const;
67 if (fabs(fSinglePrecision) < .0001) {
68 fSinglePrecision = 0.0f;
76 mantissa =
x & ((1 << 23) - 1);
84 if (mantissa && (exp == FLOAT_MAX_BIASED_EXP))
87 mantissa = (1 << 23) - 1;
102 mantissa >>= (14 + exp);
126 inline vrv_float16::operator float(
void)
const
137 if (exp == HALF_FLOAT_MAX_BIASED_EXP)
145 mantissa = (1 << 23) - 1;
156 while ((mantissa & (1 << 10)) == 0)
165 mantissa &= ((1 << 10) - 1);
180 x = (sign << 31) | exp | mantissa;
const unsigned int HALF_FLOAT_MAX_BIASED_EXP
Definition: vrv_float16.h:31
const unsigned int HALF_FLOAT_MAX_BIASED_EXP_AS_SINGLE_FP_EXP
Definition: vrv_float16.h:27
unsigned short st_uint16
Definition: vrv_float16.h:12
const unsigned int HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP
Definition: vrv_float16.h:23
unsigned int st_uint32
Definition: vrv_float16.h:13
st_uint16 m_uiValue
Definition: vrv_float16.h:43
Definition: vrv_float16.h:33
vrv_float16()
Definition: vrv_float16.h:50
const unsigned int FLOAT_MAX_BIASED_EXP
Definition: vrv_float16.h:30
x y t t *t x y t t t x y t t t x *y t *t t x *y t *t t x y t t t x y t t t x(y+z)