mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 02:09:44 +02:00
GP-3085 Adjustments for older build environments
This commit is contained in:
parent
bb79314d85
commit
4f728c082f
2 changed files with 5 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue