• Home
  • Raw
  • Download

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 ((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()
96 int32_t SkFloatBits_toIntRound(int32_t packed) { in SkFloatBits_toIntRound() argument
98 if ((packed << 1) == 0) { in SkFloatBits_toIntRound()
102 int exp = unpack_exp(packed) - EXP_BIAS; in SkFloatBits_toIntRound()
103 int value = unpack_matissa_dirty(packed) | MATISSA_MAGIC_BIG; in SkFloatBits_toIntRound()
112 return SkApplySign(value, SkExtractSign(packed)); in SkFloatBits_toIntRound()
115 value = SkApplySign(value, SkExtractSign(packed)); in SkFloatBits_toIntRound()
126 int32_t SkFloatBits_toIntCeil(int32_t packed) { in SkFloatBits_toIntCeil() argument
128 if ((packed << 1) == 0) { in SkFloatBits_toIntCeil()
132 int exp = unpack_exp(packed) - EXP_BIAS; in SkFloatBits_toIntCeil()
133 int value = unpack_matissa_dirty(packed) | MATISSA_MAGIC_BIG; in SkFloatBits_toIntCeil()
142 return SkApplySign(value, SkExtractSign(packed)); in SkFloatBits_toIntCeil()
145 value = SkApplySign(value, SkExtractSign(packed)); in SkFloatBits_toIntCeil()