Home
last modified time | relevance | path

Searched refs:newexp (Results 1 – 1 of 1) sorted by relevance

/hardware/google/gfxstream/third-party/astc-encoder/Source/
Dtinyexr.h7228 int newexp = f.s.Exponent - 127 + 15; in float_to_half_full() local
7229 if (newexp >= 31) // Overflow, return signed infinity in float_to_half_full()
7231 else if (newexp <= 0) // Underflow in float_to_half_full()
7233 if ((14 - newexp) <= 24) // Mantissa might be non-zero in float_to_half_full()
7236 o.s.Mantissa = mant >> (14 - newexp); in float_to_half_full()
7237 if ((mant >> (13 - newexp)) & 1) // Check for rounding in float_to_half_full()
7241 o.s.Exponent = static_cast<unsigned int>(newexp); in float_to_half_full()