From 5e29293a0d71f634e9f1ed87412493bba42fb5f3 Mon Sep 17 00:00:00 2001 From: Jim Monte Date: Sun, 15 Dec 2019 00:13:50 -0500 Subject: [PATCH] Removed redundant macro --- src/maths/misc/equality.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/maths/misc/equality.c b/src/maths/misc/equality.c index dbf7a920d..0a453a782 100644 --- a/src/maths/misc/equality.c +++ b/src/maths/misc/equality.c @@ -10,7 +10,6 @@ Copyright 1991 Regents of the University of California. All rights reserved. #define llabs(x) ((x) < 0 ? -(x) : (x)) #endif -#define int64_min INT64_MIN /* From Bruce Dawson, Comparing floating point numbers, http://www.cygnus-software.com/papers/comparingfloats/Comparing%20floating%20point%20numbers.htm @@ -43,13 +42,13 @@ bool AlmostEqualUlps(double A, double B, int maxUlps) aInt = uA.i; /* Make aInt lexicographically ordered as a twos-complement int */ if (aInt < 0) - aInt = int64_min - aInt; + aInt = INT64_MIN - aInt; uB.d = B; bInt = uB.i; /* Make bInt lexicographically ordered as a twos-complement int */ if (bInt < 0) - bInt = int64_min - bInt; + bInt = INT64_MIN - bInt; intDiff = llabs(aInt - bInt);