GP-3085 Adjustments for older build environments

This commit is contained in:
caheckman 2023-02-07 16:36:37 -05:00
parent bb79314d85
commit 4f728c082f
2 changed files with 5 additions and 8 deletions

View file

@ -22,8 +22,6 @@
using std::ldexp;
using std::frexp;
using std::signbit;
using std::isnan;
using std::isinf;
using std::sqrt;
using std::floor;
using std::ceil;
@ -92,8 +90,8 @@ FloatFormat::floatclass FloatFormat::extractExpSig(double x,bool *sgn,uintb *sig
*sgn = signbit(x);
if (x == 0.0) return zero;
if (isinf(x)) return infinity;
if (isnan(x)) return nan;
if (std::isinf(x)) return infinity;
if (std::isnan(x)) return nan;
if (*sgn)
x = -x;
double norm = frexp(x,&e); // norm is between 1/2 and 1