Lines Matching refs:mantissa
32 deUint32 mantissa; in deFloat32To16() local
42 mantissa = x.u & 0x007fffffu; in deFloat32To16()
53 mantissa = mantissa | 0x00800000u; in deFloat32To16()
59 deUint32 b = (mantissa >> t) & 1u; in deFloat32To16()
61 mantissa = (mantissa + a + b) >> t; in deFloat32To16()
64 return (deFloat16) (sign | mantissa); in deFloat32To16()
68 if (mantissa == 0u) in deFloat32To16()
76 mantissa >>= 13u; in deFloat32To16()
77 return (deFloat16) (sign | 0x7c00u | mantissa | (mantissa == 0u)); in deFloat32To16()
83 mantissa = mantissa + 0x00000fffu + ((mantissa >> 13u) & 1u); in deFloat32To16()
85 if (mantissa & 0x00800000u) in deFloat32To16()
88 mantissa = 0u; in deFloat32To16()
98 return (deFloat16) (sign | ((deUint32)expotent << 10u) | (mantissa >> 13u)); in deFloat32To16()
106 deUint32 mantissa; in deFloat16To32() local
117 mantissa = (deUint32)val16 & 0x000003ffu; in deFloat16To32()
121 if (mantissa == 0u) in deFloat16To32()
131 while (!(mantissa & 0x00000400u)) in deFloat16To32()
133 mantissa <<= 1u; in deFloat16To32()
138 mantissa &= ~0x00000400u; in deFloat16To32()
143 if (mantissa == 0u) in deFloat16To32()
152 x.u = (sign << 31u) | 0x7f800000u | (mantissa << 13u); in deFloat16To32()
158 mantissa = mantissa << 13u; in deFloat16To32()
160 x.u = (sign << 31u) | (expotent << 23u) | mantissa; in deFloat16To32()