summaryrefslogtreecommitdiff
path: root/goo/FixedPoint.cc
diff options
context:
space:
mode:
Diffstat (limited to 'goo/FixedPoint.cc')
-rw-r--r--goo/FixedPoint.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/goo/FixedPoint.cc b/goo/FixedPoint.cc
index 565b86c2..31e04b68 100644
--- a/goo/FixedPoint.cc
+++ b/goo/FixedPoint.cc
@@ -117,19 +117,19 @@ int FixedPoint::div(int x, int y) {
}
}
-GBool FixedPoint::divCheck(FixedPoint x, FixedPoint y, FixedPoint *result) {
+bool FixedPoint::divCheck(FixedPoint x, FixedPoint y, FixedPoint *result) {
FixPtInt64 z;
z = ((FixPtInt64)x.val << fixptShift) / y.val;
if ((z == 0 && x != 0) ||
z >= ((FixPtInt64)1 << 31) || z < -((FixPtInt64)1 << 31)) {
- return gFalse;
+ return false;
}
result->val = z;
- return gTrue;
+ return true;
}
-GBool FixedPoint::checkDet(FixedPoint m11, FixedPoint m12,
+bool FixedPoint::checkDet(FixedPoint m11, FixedPoint m12,
FixedPoint m21, FixedPoint m22,
FixedPoint epsilon) {
FixPtInt64 det, e;