Lines Matching refs:floatUnion
38 FloatUIntUnion floatUnion; in SkFloatToHalf() local
39 floatUnion.fFloat = f; in SkFloatToHalf()
41 uint32_t sign = floatUnion.fUInt & sign_mask; in SkFloatToHalf()
42 floatUnion.fUInt ^= sign; in SkFloatToHalf()
50 if (floatUnion.fUInt >= f32infty) in SkFloatToHalf()
52 o = (floatUnion.fUInt > f32infty) ? 0x7e00 : 0x7c00; in SkFloatToHalf()
55 floatUnion.fUInt &= round_mask; in SkFloatToHalf()
56 floatUnion.fFloat *= magic.fFloat; in SkFloatToHalf()
57 floatUnion.fUInt -= round_mask; in SkFloatToHalf()
59 if (floatUnion.fUInt > f16infty) { in SkFloatToHalf()
60 floatUnion.fUInt = f16infty; in SkFloatToHalf()
63 o = floatUnion.fUInt >> 13; // Take the bits! in SkFloatToHalf()