[llvm-commits] CVS: llvm/tools/lli/Interpreter/ExternalFunctions.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Mon Jun 23 14:43:01 PDT 2003
Changes in directory llvm/tools/lli/Interpreter:
ExternalFunctions.cpp updated: 1.53 -> 1.54
---
Log message:
Include <cmath> instead of <math.h>
Remove isnan; it's too unportable to handle cleanly at this point.
---
Diffs of the changes:
Index: llvm/tools/lli/Interpreter/ExternalFunctions.cpp
diff -u llvm/tools/lli/Interpreter/ExternalFunctions.cpp:1.53 llvm/tools/lli/Interpreter/ExternalFunctions.cpp:1.54
--- llvm/tools/lli/Interpreter/ExternalFunctions.cpp:1.53 Tue Jun 17 14:59:17 2003
+++ llvm/tools/lli/Interpreter/ExternalFunctions.cpp Mon Jun 23 14:41:55 2003
@@ -19,7 +19,7 @@
#include <map>
#include <dlfcn.h>
#include <link.h>
-#include <math.h>
+#include <cmath>
#include <stdio.h>
using std::vector;
@@ -217,14 +217,6 @@
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)
GenericValue lle_X_floor(FunctionType *M, const vector<GenericValue> &Args) {
assert(Args.size() == 1);
@@ -744,7 +736,6 @@
FuncNames["lle_X_pow"] = lle_X_pow;
FuncNames["lle_X_exp"] = lle_X_exp;
FuncNames["lle_X_log"] = lle_X_log;
- FuncNames["lle_X_isnan"] = lle_X_isnan;
FuncNames["lle_X_floor"] = lle_X_floor;
FuncNames["lle_X_srand"] = lle_X_srand;
FuncNames["lle_X_drand48"] = lle_X_drand48;
More information about the llvm-commits
mailing list