• Home
  • Raw
  • Download

Lines Matching refs:exp

50 	unsigned int exp;  in floatToHalfFloat()  local
56 exp = x & FLOAT_MAX_BIASED_EXP; in floatToHalfFloat()
57 if (exp >= HALF_FLOAT_MAX_BIASED_EXP_AS_SINGLE_FP_EXP) in floatToHalfFloat()
60 if (mantissa && (exp == FLOAT_MAX_BIASED_EXP)) in floatToHalfFloat()
73 else if (exp <= HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP) in floatToHalfFloat()
76 exp = (HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP - exp) >> 23; in floatToHalfFloat()
79 if (exp < 18) in floatToHalfFloat()
80 mantissa >>= (14 + exp); in floatToHalfFloat()
88 hf = (((GLhalf)sign) << 15) | (GLhalf)((exp - HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP) >> 13) | in floatToHalfFloat()
111 unsigned int exp; in floatToUnisgnedF11() local
117 exp = x & FLOAT_MAX_BIASED_EXP; in floatToUnisgnedF11()
123 if (mantissa && (exp == FLOAT_MAX_BIASED_EXP)) in floatToUnisgnedF11()
137 if (exp >= FLOAT11_MAX_BIASED_EXP_AS_SINGLE_FP_EXP) in floatToUnisgnedF11()
140 if (mantissa && (exp == FLOAT_MAX_BIASED_EXP)) in floatToUnisgnedF11()
153 else if (exp <= FLOAT11_MIN_BIASED_EXP_AS_SINGLE_FP_EXP) in floatToUnisgnedF11()
156 exp = (FLOAT11_MIN_BIASED_EXP_AS_SINGLE_FP_EXP - exp) >> 23; in floatToUnisgnedF11()
158 if (18 + exp >= sizeof(mantissa) * 8) in floatToUnisgnedF11()
164 mantissa >>= (18 + exp); in floatToUnisgnedF11()
170 f11 = ((exp - FLOAT11_MIN_BIASED_EXP_AS_SINGLE_FP_EXP) >> 17) | (mantissa >> 17); in floatToUnisgnedF11()
192 unsigned int exp; in floatToUnisgnedF10() local
198 exp = x & FLOAT_MAX_BIASED_EXP; in floatToUnisgnedF10()
204 if (mantissa && (exp == FLOAT_MAX_BIASED_EXP)) in floatToUnisgnedF10()
218 if (exp >= FLOAT10_MAX_BIASED_EXP_AS_SINGLE_FP_EXP) in floatToUnisgnedF10()
221 if (mantissa && (exp == FLOAT_MAX_BIASED_EXP)) in floatToUnisgnedF10()
234 else if (exp <= FLOAT10_MIN_BIASED_EXP_AS_SINGLE_FP_EXP) in floatToUnisgnedF10()
237 exp = (FLOAT10_MIN_BIASED_EXP_AS_SINGLE_FP_EXP - exp) >> 23; in floatToUnisgnedF10()
239 if (19 + exp >= sizeof(mantissa) * 8) in floatToUnisgnedF10()
245 mantissa >>= (19 + exp); in floatToUnisgnedF10()
251 f10 = ((exp - FLOAT10_MIN_BIASED_EXP_AS_SINGLE_FP_EXP) >> 18) | (mantissa >> 18); in floatToUnisgnedF10()
261 unsigned int exp = (unsigned int)(hf & HALF_FLOAT_MAX_BIASED_EXP); in halfFloatToFloat() local
267 if (exp == HALF_FLOAT_MAX_BIASED_EXP) in halfFloatToFloat()
272 exp = FLOAT_MAX_BIASED_EXP; in halfFloatToFloat()
276 else if (exp == 0x0) in halfFloatToFloat()
282 exp = HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP; in halfFloatToFloat()
289 exp -= (1 << 23); in halfFloatToFloat()
302 exp = (exp << 13) + HALF_FLOAT_MIN_BIASED_EXP_AS_SINGLE_FP_EXP; in halfFloatToFloat()
304 ui = (sign << 31) | exp | mantissa; in halfFloatToFloat()
311 unsigned int exp = (unsigned int)(f11 & FLOAT11_MAX_BIASED_EXP); in unsignedF11ToFloat() local
317 if (exp == FLOAT11_MAX_BIASED_EXP) in unsignedF11ToFloat()
322 exp = FLOAT_MAX_BIASED_EXP; in unsignedF11ToFloat()
326 else if (exp == 0x0) in unsignedF11ToFloat()
332 exp = FLOAT11_MIN_BIASED_EXP_AS_SINGLE_FP_EXP; in unsignedF11ToFloat()
339 exp -= (1 << 23); in unsignedF11ToFloat()
352 exp = (exp << 17) + FLOAT11_MIN_BIASED_EXP_AS_SINGLE_FP_EXP; in unsignedF11ToFloat()
354 ui = exp | mantissa; in unsignedF11ToFloat()
361 unsigned int exp = (unsigned int)(f10 & FLOAT10_MAX_BIASED_EXP); in unsignedF10ToFloat() local
367 if (exp == FLOAT10_MAX_BIASED_EXP) in unsignedF10ToFloat()
372 exp = FLOAT_MAX_BIASED_EXP; in unsignedF10ToFloat()
376 else if (exp == 0x0) in unsignedF10ToFloat()
382 exp = FLOAT10_MIN_BIASED_EXP_AS_SINGLE_FP_EXP; in unsignedF10ToFloat()
389 exp -= (1 << 23); in unsignedF10ToFloat()
402 exp = (exp << 18) + FLOAT10_MIN_BIASED_EXP_AS_SINGLE_FP_EXP; in unsignedF10ToFloat()
404 ui = exp | mantissa; in unsignedF10ToFloat()