mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-22 00:42:03 +08:00
Merge remote-tracking branch 'origin/GP-3085_NativeCompatibility'
This commit is contained in:
@@ -35,16 +35,15 @@ ifeq ($(OS),Darwin)
|
||||
OSDIR=mac_x86_64
|
||||
endif
|
||||
|
||||
CC=gcc
|
||||
CXX=g++
|
||||
CXX=g++ -std=c++11
|
||||
|
||||
# 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 -fprofile-arcs -ftest-coverage -Wall -Wno-sign-compare
|
||||
|
||||
# Optimization flags
|
||||
OPT_CXXFLAGS=-O2 -std=c++11 -Wall -Wno-sign-compare
|
||||
OPT_CXXFLAGS=-O2 -Wall -Wno-sign-compare
|
||||
|
||||
YACC=bison
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user