Home | History | Annotate | Download | only in core

Lines Matching refs:packed

27 static inline int unpack_exp(uint32_t packed) {
28 return (packed << 1 >> 24);
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) {
41 return packed & ~0xFF000000;
45 int32_t SkFloatBits_toIntCast(int32_t packed) {
46 int exp = unpack_exp(packed) - EXP_BIAS;
47 int value = unpack_matissa_dirty(packed) | MATISSA_MAGIC_BIG;
62 return SkApplySign(value, SkExtractSign(packed));
66 int32_t SkFloatBits_toIntFloor(int32_t packed) {
68 if ((packed << 1) == 0) {
72 int exp = unpack_exp(packed) - EXP_BIAS;
73 int value = unpack_matissa_dirty(packed) | MATISSA_MAGIC_BIG;
82 return SkApplySign(value, SkExtractSign(packed));
85 value = SkApplySign(value, SkExtractSign(packed));
96 int32_t SkFloatBits_toIntRound(int32_t packed) {
98 if ((packed << 1) == 0) {
102 int exp = unpack_exp(packed) - EXP_BIAS;
103 int value = unpack_matissa_dirty(packed) | MATISSA_MAGIC_BIG;
112 return SkApplySign(value, SkExtractSign(packed));
115 value = SkApplySign(value, SkExtractSign(packed));
126 int32_t SkFloatBits_toIntCeil(int32_t packed) {
128 if ((packed << 1) == 0) {
132 int exp = unpack_exp(packed) - EXP_BIAS;
133 int value = unpack_matissa_dirty(packed) | MATISSA_MAGIC_BIG;
142 return SkApplySign(value, SkExtractSign(packed));
145 value = SkApplySign(value, SkExtractSign(packed));