summaryrefslogtreecommitdiff
path: root/Build/source/libs/xpdf/xpdf-src/goo/FixedPoint.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/libs/xpdf/xpdf-src/goo/FixedPoint.h')
-rw-r--r--Build/source/libs/xpdf/xpdf-src/goo/FixedPoint.h59
1 files changed, 29 insertions, 30 deletions
diff --git a/Build/source/libs/xpdf/xpdf-src/goo/FixedPoint.h b/Build/source/libs/xpdf/xpdf-src/goo/FixedPoint.h
index 1f4be7095d0..438343fc585 100644
--- a/Build/source/libs/xpdf/xpdf-src/goo/FixedPoint.h
+++ b/Build/source/libs/xpdf/xpdf-src/goo/FixedPoint.h
@@ -49,35 +49,35 @@ public:
FixedPoint operator =(FixedPoint x) { val = x.val; return *this; }
- int operator ==(FixedPoint x) const { return val == x.val; }
- int operator ==(double x) const { return *this == (FixedPoint)x; }
- int operator ==(int x) const { return *this == (FixedPoint)x; }
- int operator ==(long x) const { return *this == (FixedPoint)x; }
-
- int operator !=(FixedPoint x) const { return val != x.val; }
- int operator !=(double x) const { return *this != (FixedPoint)x; }
- int operator !=(int x) const { return *this != (FixedPoint)x; }
- int operator !=(long x) const { return *this != (FixedPoint)x; }
-
- int operator <(FixedPoint x) const { return val < x.val; }
- int operator <(double x) const { return *this < (FixedPoint)x; }
- int operator <(int x) const { return *this < (FixedPoint)x; }
- int operator <(long x) const { return *this < (FixedPoint)x; }
-
- int operator <=(FixedPoint x) const { return val <= x.val; }
- int operator <=(double x) const { return *this <= (FixedPoint)x; }
- int operator <=(int x) const { return *this <= (FixedPoint)x; }
- int operator <=(long x) const { return *this <= (FixedPoint)x; }
-
- int operator >(FixedPoint x) const { return val > x.val; }
- int operator >(double x) const { return *this > (FixedPoint)x; }
- int operator >(int x) const { return *this > (FixedPoint)x; }
- int operator >(long x) const { return *this > (FixedPoint)x; }
-
- int operator >=(FixedPoint x) const { return val >= x.val; }
- int operator >=(double x) const { return *this >= (FixedPoint)x; }
- int operator >=(int x) const { return *this >= (FixedPoint)x; }
- int operator >=(long x) const { return *this >= (FixedPoint)x; }
+ bool operator ==(FixedPoint x) const { return val == x.val; }
+ bool operator ==(double x) const { return *this == (FixedPoint)x; }
+ bool operator ==(int x) const { return *this == (FixedPoint)x; }
+ bool operator ==(long x) const { return *this == (FixedPoint)x; }
+
+ bool operator !=(FixedPoint x) const { return val != x.val; }
+ bool operator !=(double x) const { return *this != (FixedPoint)x; }
+ bool operator !=(int x) const { return *this != (FixedPoint)x; }
+ bool operator !=(long x) const { return *this != (FixedPoint)x; }
+
+ bool operator <(FixedPoint x) const { return val < x.val; }
+ bool operator <(double x) const { return *this < (FixedPoint)x; }
+ bool operator <(int x) const { return *this < (FixedPoint)x; }
+ bool operator <(long x) const { return *this < (FixedPoint)x; }
+
+ bool operator <=(FixedPoint x) const { return val <= x.val; }
+ bool operator <=(double x) const { return *this <= (FixedPoint)x; }
+ bool operator <=(int x) const { return *this <= (FixedPoint)x; }
+ bool operator <=(long x) const { return *this <= (FixedPoint)x; }
+
+ bool operator >(FixedPoint x) const { return val > x.val; }
+ bool operator >(double x) const { return *this > (FixedPoint)x; }
+ bool operator >(int x) const { return *this > (FixedPoint)x; }
+ bool operator >(long x) const { return *this > (FixedPoint)x; }
+
+ bool operator >=(FixedPoint x) const { return val >= x.val; }
+ bool operator >=(double x) const { return *this >= (FixedPoint)x; }
+ bool operator >=(int x) const { return *this >= (FixedPoint)x; }
+ bool operator >=(long x) const { return *this >= (FixedPoint)x; }
FixedPoint operator -() { return make(-val); }
@@ -136,7 +136,6 @@ public:
static FixedPoint avg(FixedPoint x, FixedPoint y)
{ return make((x.val >> 1) + (y.val >> 1) + ((x.val | y.val) & 1)); }
-
static FixedPoint sqrt(FixedPoint x);
static FixedPoint pow(FixedPoint x, FixedPoint y);