Removed redundant macro

This commit is contained in:
Jim Monte 2019-12-15 00:13:50 -05:00 committed by Holger Vogt
parent fd730148a7
commit c24b1e5f8c
1 changed files with 2 additions and 3 deletions

View File

@ -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);