Home | History | Annotate | Download | only in pixelflinger2

Lines Matching full:operator

55     inline void operator += (const Vec4<Type> & rhs) __attribute__((always_inline))
57 inline void operator -= (const Vec4<Type> & rhs) __attribute__((always_inline))
59 inline void operator *= (const Vec4<Type> & rhs) __attribute__((always_inline))
61 inline void operator /= (const Vec4<Type> & rhs) __attribute__((always_inline))
63 inline void operator *= (Type rhs) __attribute__((always_inline))
65 inline void operator /= (Type rhs) __attribute__((always_inline))
68 inline Vec4 operator+(const Vec4 & rhs) const
85 bool operator==(const Vec4 & rhs) const { return u[0] == rhs.u[0] && u[1] == rhs.u[1] && u[2] == rhs.u[2] && u[3] == rhs.u[3]; }
86 bool operator!=(const Vec4 & rhs) const { return !(*this == rhs); }
90 template <> inline void Vec4<float>::operator += (const Vec4<float> & rhs) __attribute__((always_inline));
91 template <> inline void Vec4<float>::operator += (const Vec4<float> & rhs)
93 template <> inline void Vec4<float>::operator -= (const Vec4<float> & rhs) __attribute__((always_inline));
94 template <> inline void Vec4<float>::operator -= (const Vec4<float> & rhs)
96 template <> inline void Vec4<float>::operator *= (float rhs) __attribute__((always_inline));
97 template <> inline void Vec4<float>::operator *= (float rhs)
99 template <> inline void Vec4<float>::operator /= (float rhs) __attribute__((always_inline));
100 template <> inline void Vec4<float>::operator /= (float rhs)
120 FixedPoint operator-() const
126 FixedPoint operator+(const FixedPoint & rhs) const
132 FixedPoint operator-(const FixedPoint & rhs) const
138 FixedPoint operator*(const FixedPoint & rhs) const
144 FixedPoint operator/(const FixedPoint & rhs) const
157 void operator+=(const FixedPoint & rhs) { val += rhs.val; }
158 void operator-=(const FixedPoint & rhs) { val += rhs.val; }
159 void operator*=(const FixedPoint & rhs) { *this = *this * rhs; }
160 void operator/=(const FixedPoint & rhs) { *this = *this / rhs; }
162 bool operator<(const FixedPoint & rhs) const { return val < rhs.val; }
163 bool operator>(const FixedPoint & rhs) const { return val > rhs.val; }
164 bool operator<=(const FixedPoint & rhs) const { return val <= rhs.val; }
165 bool operator>=(const FixedPoint & rhs) const { return val >= rhs.val; }
166 bool operator==(const FixedPoint & rhs) const { return val == rhs.val; }
167 bool operator!=(const FixedPoint & rhs) const { return val != rhs.val; }
169 operator int() const { return val >> FIXED_POINT_SHIFT; }
170 operator unsigned() const { return val >> FIXED_POINT_SHIFT; }
171 operator float() const { return (float)val / FIXED_POINT_ONE; }