mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
Include <cmath> instead of <math.h>
Remove isnan; it's too unportable to handle cleanly at this point. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6866 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1d5fc3f416
commit
703379827f
@ -19,7 +19,7 @@
|
|||||||
#include <map>
|
#include <map>
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <link.h>
|
#include <link.h>
|
||||||
#include <math.h>
|
#include <cmath>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
using std::vector;
|
using std::vector;
|
||||||
|
|
||||||
@ -217,14 +217,6 @@ GenericValue lle_X_log(FunctionType *M, const vector<GenericValue> &Args) {
|
|||||||
return GV;
|
return GV;
|
||||||
}
|
}
|
||||||
|
|
||||||
// int isnan(double value);
|
|
||||||
GenericValue lle_X_isnan(FunctionType *F, const vector<GenericValue> &Args) {
|
|
||||||
assert(Args.size() == 1);
|
|
||||||
GenericValue GV;
|
|
||||||
GV.IntVal = std::isnan(Args[0].DoubleVal);
|
|
||||||
return GV;
|
|
||||||
}
|
|
||||||
|
|
||||||
// double floor(double)
|
// double floor(double)
|
||||||
GenericValue lle_X_floor(FunctionType *M, const vector<GenericValue> &Args) {
|
GenericValue lle_X_floor(FunctionType *M, const vector<GenericValue> &Args) {
|
||||||
assert(Args.size() == 1);
|
assert(Args.size() == 1);
|
||||||
@ -744,7 +736,6 @@ void Interpreter::initializeExternalFunctions() {
|
|||||||
FuncNames["lle_X_pow"] = lle_X_pow;
|
FuncNames["lle_X_pow"] = lle_X_pow;
|
||||||
FuncNames["lle_X_exp"] = lle_X_exp;
|
FuncNames["lle_X_exp"] = lle_X_exp;
|
||||||
FuncNames["lle_X_log"] = lle_X_log;
|
FuncNames["lle_X_log"] = lle_X_log;
|
||||||
FuncNames["lle_X_isnan"] = lle_X_isnan;
|
|
||||||
FuncNames["lle_X_floor"] = lle_X_floor;
|
FuncNames["lle_X_floor"] = lle_X_floor;
|
||||||
FuncNames["lle_X_srand"] = lle_X_srand;
|
FuncNames["lle_X_srand"] = lle_X_srand;
|
||||||
FuncNames["lle_X_drand48"] = lle_X_drand48;
|
FuncNames["lle_X_drand48"] = lle_X_drand48;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user