Lines Matching refs:packed
27 static inline int unpack_exp(uint32_t packed) { in unpack_exp() argument
28 return (packed << 1 >> 24); in unpack_exp()
33 static inline int unpack_matissa(uint32_t packed) {
35 return (packed & ~0xFF000000) | MATISSA_MAGIC_BIG;
40 static inline int unpack_matissa_dirty(uint32_t packed) { in unpack_matissa_dirty() argument
41 return packed & ~0xFF000000; in unpack_matissa_dirty()
45 int32_t SkFloatBits_toIntCast(int32_t packed) { in SkFloatBits_toIntCast() argument
46 int exp = unpack_exp(packed) - EXP_BIAS; in SkFloatBits_toIntCast()
47 int value = unpack_matissa_dirty(packed) | MATISSA_MAGIC_BIG; in SkFloatBits_toIntCast()
62 return SkApplySign(value, SkExtractSign(packed)); in SkFloatBits_toIntCast()
66 int32_t SkFloatBits_toIntFloor(int32_t packed) { in SkFloatBits_toIntFloor() argument
68 if (SkLeftShift(packed, 1) == 0) { in SkFloatBits_toIntFloor()
72 int exp = unpack_exp(packed) - EXP_BIAS; in SkFloatBits_toIntFloor()
73 int value = unpack_matissa_dirty(packed) | MATISSA_MAGIC_BIG; in SkFloatBits_toIntFloor()
82 return SkApplySign(value, SkExtractSign(packed)); in SkFloatBits_toIntFloor()
85 value = SkApplySign(value, SkExtractSign(packed)); in SkFloatBits_toIntFloor()
105 int32_t SkFloatBits_toIntRound(int32_t packed) { in SkFloatBits_toIntRound() argument
107 if (SkLeftShift(packed, 1) == 0) { in SkFloatBits_toIntRound()
111 int exp = unpack_exp(packed) - EXP_BIAS; in SkFloatBits_toIntRound()
112 int value = unpack_matissa_dirty(packed) | MATISSA_MAGIC_BIG; in SkFloatBits_toIntRound()
121 return SkApplySign(value, SkExtractSign(packed)); in SkFloatBits_toIntRound()
124 value = SkApplySign(value, SkExtractSign(packed)); in SkFloatBits_toIntRound()
135 int32_t SkFloatBits_toIntCeil(int32_t packed) { in SkFloatBits_toIntCeil() argument
137 if (SkLeftShift(packed, 1) == 0) { in SkFloatBits_toIntCeil()
141 int exp = unpack_exp(packed) - EXP_BIAS; in SkFloatBits_toIntCeil()
142 int value = unpack_matissa_dirty(packed) | MATISSA_MAGIC_BIG; in SkFloatBits_toIntCeil()
151 return SkApplySign(value, SkExtractSign(packed)); in SkFloatBits_toIntCeil()
154 value = SkApplySign(value, SkExtractSign(packed)); in SkFloatBits_toIntCeil()