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);
170 int32_t SkFloat::Mul(int32_t packed_a, int32_t packed_b)
181 return SkFloat::SetShift(mul24(value_a, value_b), exp_a + exp_b - 2*EXP_BIAS + 24);
184 int32_t SkFloat::MulInt(int32_t packed, int n)
189 int32_t SkFloat::Div(int32_t packed_n, int32_t packed_d)
202 return SkFloat::SetShift(SkDivBits(value_n, value_d, 24), exp_n - exp_d - 24);
205 int32_t SkFloat::DivInt(int32_t packed, int n)
210 int32_t SkFloat::Invert(int32_t packed)
215 int32_t SkFloat::Sqrt(int32_t packed)
229 return SkFloat::SetShift(root, nexp - 11);
237 int32_t SkFloat::CubeRoot(int32_t packed)
257 int SkFloat::Cmp(int32_t packed_a, int32_t packed_b)
273 void SkFloat::UnitTest()
276 SkFloat a, b, c, d;
292 SkDebugf("SkFloat: %d + %d = %d\n", c.getInt(), b.getInt(), d.getInt());