Lines Matching refs:expotent
31 int expotent; in deFloat32To16() local
41 expotent = (int)((x.u >> 23u) & 0x000000ffu) - (127 - 15); in deFloat32To16()
44 if (expotent <= 0) in deFloat32To16()
46 if (expotent < -10) in deFloat32To16()
57 deUint32 t = 14u - expotent; in deFloat32To16()
66 else if (expotent == 0xff - (127 - 15)) in deFloat32To16()
89 expotent += 1; in deFloat32To16()
92 if (expotent > 30) in deFloat32To16()
98 return (deFloat16) (sign | ((deUint32)expotent << 10u) | (mantissa >> 13u)); in deFloat32To16()
105 long expotent; in deFloat64To16() local
115 expotent = (long int)((x.u >> 52u) & 0x000007ffu) - (1023 - 15); in deFloat64To16()
118 if (expotent <= 0) in deFloat64To16()
120 if (expotent < -10) in deFloat64To16()
131 deUint64 t = 43u - expotent; in deFloat64To16()
140 else if (expotent == 0x7ff - (1023 - 15)) in deFloat64To16()
163 expotent += 1; in deFloat64To16()
166 if (expotent > 30) in deFloat64To16()
171 return (deFloat16) (sign | ((deUint32)expotent << 10u) | (mantissa >> 13u)); in deFloat64To16()
492 deUint32 expotent; in deFloat16To32() local
503 expotent = ((deUint32)val16 >> 10u) & 0x0000001fu; in deFloat16To32()
506 if (expotent == 0u) in deFloat16To32()
521 expotent -= 1u; in deFloat16To32()
524 expotent += 1u; in deFloat16To32()
528 else if (expotent == 31u) in deFloat16To32()
544 expotent = expotent + (127u - 15u); in deFloat16To32()
547 x.u = (sign << 31u) | (expotent << 23u) | mantissa; in deFloat16To32()
554 deUint64 expotent; in deFloat16To64() local
565 expotent = ((deUint32)val16 >> 10u) & 0x0000001fu; in deFloat16To64()
568 if (expotent == 0u) in deFloat16To64()
583 expotent -= 1u; in deFloat16To64()
586 expotent += 1u; in deFloat16To64()
590 else if (expotent == 31u) in deFloat16To64()
606 expotent = expotent + (1023u - 15u); in deFloat16To64()
609 x.u = (sign << 63u) | (expotent << 52u) | mantissa; in deFloat16To64()