Lines Matching refs:SkFloat
45 #include "SkFloat.h"
49 #define SkScalarToFP(n) SkFloat::SetShift(n, -16)
50 #define SkFPToScalar(n) SkFloat::GetShift(n, -16)
51 #define SkIntToFP(n) SkFloat::SetShift(n, 0)
52 #define SkFPRound(x) SkFloat::Round(x);
53 #define SkFPCeil(x) SkFloat::Ceil();
54 #define SkFPFloor(x) SkFloat::Floor();
56 #define SkFPNeg(x) SkFloat::Neg(x)
57 #define SkFPAbs(x) SkFloat::Abs(x)
58 #define SkFPAdd(a, b) SkFloat::Add(a, b)
59 #define SkFPSub(a, b) SkFloat::Add(a, SkFloat::Neg(b))
60 #define SkFPMul(a, b) SkFloat::Mul(a, b)
61 #define SkFPMulInt(a, n) SkFloat::MulInt(a, n)
62 #define SkFPDiv(a, b) SkFloat::Div(a, b)
63 #define SkFPDivInt(a, n) SkFloat::DivInt(a, n)
64 #define SkFPInvert(x) SkFloat::Invert(x)
65 #define SkFPSqrt(x) SkFloat::Sqrt(x)
66 #define SkFPCubeRoot(x) SkFloat::CubeRoot(x)
68 #define SkFPLT(a, b) (SkFloat::Cmp(a, b) < 0)
69 #define SkFPLE(a, b) (SkFloat::Cmp(a, b) <= 0)
70 #define SkFPGT(a, b) (SkFloat::Cmp(a, b) > 0)
71 #define SkFPGE(a, b) (SkFloat::Cmp(a, b) >= 0)