Home
last modified time | relevance | path

Searched refs:SkFloat (Results 1 – 6 of 6) sorted by relevance

/external/skia/src/core/
DSkFloat.h15 class SkFloat {
17 SkFloat() {} in SkFloat() function
34 void setShiftLeft(const SkFloat& a, int bits) { fPacked = Shift(a.fPacked, bits); } in setShiftLeft()
37 void setShiftRight(const SkFloat& a, int bits) { fPacked = Shift(a.fPacked, -bits); } in setShiftRight()
39 void add(const SkFloat& a) { fPacked = Add(fPacked, a.fPacked); } in add()
40 void setAdd(const SkFloat& a, const SkFloat& b) { fPacked = Add(a.fPacked, b.fPacked); } in setAdd()
42 void sub(const SkFloat& a) { fPacked = Add(fPacked, Neg(a.fPacked)); } in sub()
43 void setSub(const SkFloat& a, const SkFloat& b) { fPacked = Add(a.fPacked, Neg(b.fPacked)); } in setSub()
45 void mul(const SkFloat& a) { fPacked = Mul(fPacked, a.fPacked); } in mul()
46 void setMul(const SkFloat& a, const SkFloat& b) { fPacked = Mul(a.fPacked, b.fPacked); } in setMul()
[all …]
DSkFP.h49 #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))
[all …]
DSkFloat.cpp32 int SkFloat::GetShift(int32_t packed, int shift) in GetShift()
60 int32_t SkFloat::SetShift(int value, int shift) in SetShift()
116 int32_t SkFloat::Neg(int32_t packed) in Neg()
123 int32_t SkFloat::Add(int32_t packed_a, int32_t packed_b) in Add()
156 return SkFloat::SetShift(value_a + value_b, exp - EXP_BIAS); in Add()
170 int32_t SkFloat::Mul(int32_t packed_a, int32_t packed_b) in Mul()
181 return SkFloat::SetShift(mul24(value_a, value_b), exp_a + exp_b - 2*EXP_BIAS + 24); in Mul()
184 int32_t SkFloat::MulInt(int32_t packed, int n) in MulInt()
189 int32_t SkFloat::Div(int32_t packed_n, int32_t packed_d) in Div()
202 return SkFloat::SetShift(SkDivBits(value_n, value_d, 24), exp_n - exp_d - 24); in Div()
[all …]
/external/skia/gyp/
Dcore.gyp78 '../src/core/SkFloat.cpp',
79 '../src/core/SkFloat.h',
/external/skia/src/animator/
DSkMemberInfo.h27 #define SkFloat SkScalar macro
/external/skia/
DAndroid.mk105 src/core/SkFloat.cpp \