mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 10:19:23 +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
|
@ -35,16 +35,15 @@ ifeq ($(OS),Darwin)
|
||||||
OSDIR=mac_x86_64
|
OSDIR=mac_x86_64
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CC=gcc
|
CXX=g++ -std=c++11
|
||||||
CXX=g++
|
|
||||||
|
|
||||||
# Debug flags
|
# Debug flags
|
||||||
DBG_CXXFLAGS=-g -std=c++11 -Wall -Wno-sign-compare
|
DBG_CXXFLAGS=-g -Wall -Wno-sign-compare
|
||||||
#DBG_CXXFLAGS=-g -pg -Wall -Wno-sign-compare
|
#DBG_CXXFLAGS=-g -pg -Wall -Wno-sign-compare
|
||||||
#DBG_CXXFLAGS=-g -fprofile-arcs -ftest-coverage -Wall -Wno-sign-compare
|
#DBG_CXXFLAGS=-g -fprofile-arcs -ftest-coverage -Wall -Wno-sign-compare
|
||||||
|
|
||||||
# Optimization flags
|
# Optimization flags
|
||||||
OPT_CXXFLAGS=-O2 -std=c++11 -Wall -Wno-sign-compare
|
OPT_CXXFLAGS=-O2 -Wall -Wno-sign-compare
|
||||||
|
|
||||||
YACC=bison
|
YACC=bison
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,6 @@
|
||||||
using std::ldexp;
|
using std::ldexp;
|
||||||
using std::frexp;
|
using std::frexp;
|
||||||
using std::signbit;
|
using std::signbit;
|
||||||
using std::isnan;
|
|
||||||
using std::isinf;
|
|
||||||
using std::sqrt;
|
using std::sqrt;
|
||||||
using std::floor;
|
using std::floor;
|
||||||
using std::ceil;
|
using std::ceil;
|
||||||
|
@ -92,8 +90,8 @@ FloatFormat::floatclass FloatFormat::extractExpSig(double x,bool *sgn,uintb *sig
|
||||||
|
|
||||||
*sgn = signbit(x);
|
*sgn = signbit(x);
|
||||||
if (x == 0.0) return zero;
|
if (x == 0.0) return zero;
|
||||||
if (isinf(x)) return infinity;
|
if (std::isinf(x)) return infinity;
|
||||||
if (isnan(x)) return nan;
|
if (std::isnan(x)) return nan;
|
||||||
if (*sgn)
|
if (*sgn)
|
||||||
x = -x;
|
x = -x;
|
||||||
double norm = frexp(x,&e); // norm is between 1/2 and 1
|
double norm = frexp(x,&e); // norm is between 1/2 and 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue