Lines Matching refs:SkFloat
10 #include "SkFloat.h"
32 int SkFloat::GetShift(int32_t packed, int shift)
60 int32_t SkFloat::SetShift(int value, int shift)
116 int32_t SkFloat::Neg(int32_t packed)
123 int32_t SkFloat::Add(int32_t packed_a, int32_t packed_b)
156 return SkFloat::SetShift(value_a + value_b, exp - EXP_BIAS);
164 int32_t SkFloat::Mul(int32_t packed_a, int32_t packed_b)
175 return SkFloat::SetShift(mul24(value_a, value_b), exp_a + exp_b - 2*EXP_BIAS + 24);
178 int32_t SkFloat::MulInt(int32_t packed, int n)
183 int32_t SkFloat::Div(int32_t packed_n, int32_t packed_d)
196 return SkFloat::SetShift(SkDivBits(value_n, value_d, 24), exp_n - exp_d - 24);
199 int32_t SkFloat::DivInt(int32_t packed, int n)
204 int32_t SkFloat::Invert(int32_t packed)
209 int32_t SkFloat::Sqrt(int32_t packed)
223 return SkFloat::SetShift(root, nexp - 11);
231 int32_t SkFloat::CubeRoot(int32_t packed)
251 int SkFloat::Cmp(int32_t packed_a, int32_t packed_b)
267 void SkFloat::UnitTest()
270 SkFloat a, b, c, d;
286 SkDebugf("SkFloat: %d + %d = %d\n", c.getInt(), b.getInt(), d.getInt());