• Home
  • Raw
  • Download

Lines Matching refs:packed

15 static int get_unsigned_exp(uint32_t packed)  in get_unsigned_exp()  argument
17 return (packed << 1 >> 24); in get_unsigned_exp()
20 static unsigned get_unsigned_value(uint32_t packed) in get_unsigned_value() argument
22 return (packed << 9 >> 9) | (1 << 23); in get_unsigned_value()
25 static int get_signed_value(int32_t packed) in get_signed_value() argument
27 return SkApplySign(get_unsigned_value(packed), SkExtractSign(packed)); in get_signed_value()
32 int SkFloat::GetShift(int32_t packed, int shift) in GetShift() argument
34 if (packed == 0) in GetShift()
37 int exp = get_unsigned_exp(packed) - EXP_BIAS - shift; in GetShift()
38 int value = get_unsigned_value(packed); in GetShift()
55 return SkApplySign(value, SkExtractSign(packed)); in GetShift()
96 int32_t packed = sign << 31; // set the sign-bit in SetShift() local
97 packed |= shift << 23; // store the packed exponent in SetShift()
98 packed |= ((unsigned)(value << 9) >> 9); // clear 24th bit of value (its implied) in SetShift()
104 n = SkExtractSign(packed); in SetShift()
106 n = get_unsigned_exp(packed); in SetShift()
108 n = get_unsigned_value(packed); in SetShift()
112 return packed; in SetShift()
116 int32_t SkFloat::Neg(int32_t packed) in Neg() argument
118 if (packed) in Neg()
119 packed = packed ^ (1 << 31); in Neg()
120 return packed; in Neg()
184 int32_t SkFloat::MulInt(int32_t packed, int n) in MulInt() argument
186 return Mul(packed, SetShift(n, 0)); in MulInt()
205 int32_t SkFloat::DivInt(int32_t packed, int n) in DivInt() argument
207 return Div(packed, SetShift(n, 0)); in DivInt()
210 int32_t SkFloat::Invert(int32_t packed) in Invert() argument
212 return Div(packed, SetShift(1, 0)); in Invert()
215 int32_t SkFloat::Sqrt(int32_t packed) in Sqrt() argument
217 if (packed < 0) in Sqrt()
223 int exp = get_unsigned_exp(packed); in Sqrt()
224 int value = get_unsigned_value(packed); in Sqrt()
237 int32_t SkFloat::CubeRoot(int32_t packed) in CubeRoot() argument