10#if !defined(OWL_FIXEDPNT_H)
14#if defined(BI_HAS_PRAGMA_ONCE)
70 int r) {
return r +
l;}
84 int r) {
return long(
l.Value *
r);}
91 int r) {
return long(
l.Value /
r);}
104 operator int() {
return int(Value >> 16);}
friend TFixedPoint operator/(const TFixedPoint &l, const TFixedPoint &r)
TFixedPoint & operator-=(const TFixedPoint &f)
friend bool operator<(const TFixedPoint &l, const TFixedPoint &r)
TFixedPoint(int num, int denom)
TFixedPoint & operator<<=(unsigned n)
friend TFixedPoint operator+(const TFixedPoint &l, const TFixedPoint &r)
TFixedPoint operator<<(unsigned n)
friend bool operator==(const TFixedPoint &l, const TFixedPoint &r)
friend bool operator!=(const TFixedPoint &l, const TFixedPoint &r)
TFixedPoint operator>>(unsigned n)
TFixedPoint & operator*=(int s)
friend TFixedPoint operator*(const TFixedPoint &l, const TFixedPoint &r)
TFixedPoint & operator/=(int s)
TFixedPoint & operator>>=(unsigned n)
TFixedPoint & operator+=(const TFixedPoint &f)
Object Windows Library (OWLNext Core)