Lines Matching defs:operator
22 explicit operator float() const { return fVal * (1/32768.0f); }
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; }