Home
last modified time | relevance | path

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

/external/skia/src/core/
DSkHalf.cpp38 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()
[all …]