Lines Matching refs:SkFixed15
17 class SkFixed15 {
19 SkFixed15() = default;
21 SkFixed15(float val) : fVal(val * 32768) { SkASSERT(0.0f <= val && val <= 1.0f); } in SkFixed15() function
24 static SkFixed15 Load(uint16_t val) { in Load()
30 static SkFixed15 FromU8(uint8_t val) { in FromU8()
41 SkFixed15 operator +(SkFixed15 o) const { return fVal + o.fVal; }
42 SkFixed15 operator -(SkFixed15 o) const { return fVal - o.fVal; }
43 SkFixed15 operator *(SkFixed15 o) const { return (fVal * o.fVal + (1<<14)) >> 15; }
44 SkFixed15 operator<<(int bits) const { return fVal << bits; }
45 SkFixed15 operator>>(int bits) const { return fVal >> bits; }
47 SkFixed15& operator +=(SkFixed15 o) { return (*this = *this + o); }
48 SkFixed15& operator -=(SkFixed15 o) { return (*this = *this - o); }
49 SkFixed15& operator *=(SkFixed15 o) { return (*this = *this * o); }
50 SkFixed15& operator<<=(int bits) { return (*this = *this << bits); }
51 SkFixed15& operator>>=(int bits) { return (*this = *this >> bits); }
53 bool operator==(SkFixed15 o) const { return fVal == o.fVal; }
54 bool operator!=(SkFixed15 o) const { return fVal != o.fVal; }
55 bool operator<=(SkFixed15 o) const { return fVal <= o.fVal; }
56 bool operator>=(SkFixed15 o) const { return fVal >= o.fVal; }
57 bool operator< (SkFixed15 o) const { return fVal < o.fVal; }
58 bool operator> (SkFixed15 o) const { return fVal > o.fVal; }
61 SkFixed15(int val) : fVal(val) {} in SkFixed15() function