[llvm-commits] CVS: llvm/lib/Support/IsInf.cpp IsNAN.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Aug 11 16:53:11 PDT 2006
Changes in directory llvm/lib/Support:
IsInf.cpp updated: 1.9 -> 1.10
IsNAN.cpp updated: 1.6 -> 1.7
---
Log message:
remove IncludeFile turds in MathExtras.h, which bloats every .o file that
#includes it.
---
Diffs of the changes: (+9 -13)
IsInf.cpp | 13 +++++++------
IsNAN.cpp | 9 ++-------
2 files changed, 9 insertions(+), 13 deletions(-)
Index: llvm/lib/Support/IsInf.cpp
diff -u llvm/lib/Support/IsInf.cpp:1.9 llvm/lib/Support/IsInf.cpp:1.10
--- llvm/lib/Support/IsInf.cpp:1.9 Wed Jul 26 11:18:00 2006
+++ llvm/lib/Support/IsInf.cpp Fri Aug 11 18:52:54 2006
@@ -6,9 +6,12 @@
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
+//
+// Platform-independent wrapper around C99 isinf()
+//
+//===----------------------------------------------------------------------===//
#include "llvm/Config/config.h"
-#include "llvm/System/IncludeFile.h"
#if HAVE_ISINF_IN_MATH_H
# include <math.h>
@@ -33,16 +36,14 @@
#elif defined(__hpux)
// HP-UX is "special"
#include <math.h>
-static int isinf(double x) { return ((x)==INFINITY)||((x)==-INFINITY); }
+static int isinf(double x) { return ((x) == INFINITY) || ((x) == -INFINITY); }
#else
# error "Don't know how to get isinf()"
#endif
namespace llvm {
-int IsInf (float f) { return isinf (f); }
-int IsInf (double d) { return isinf (d); }
+int IsInf(float f) { return isinf(f); }
+int IsInf(double d) { return isinf(d); }
} // end namespace llvm;
-
-DEFINING_FILE_FOR(SupportIsInf)
Index: llvm/lib/Support/IsNAN.cpp
diff -u llvm/lib/Support/IsNAN.cpp:1.6 llvm/lib/Support/IsNAN.cpp:1.7
--- llvm/lib/Support/IsNAN.cpp:1.6 Wed Jul 26 11:18:00 2006
+++ llvm/lib/Support/IsNAN.cpp Fri Aug 11 18:52:54 2006
@@ -12,7 +12,6 @@
//===----------------------------------------------------------------------===//
#include "llvm/Config/config.h"
-#include "llvm/System/IncludeFile.h"
#if HAVE_ISNAN_IN_MATH_H
# include <math.h>
@@ -29,10 +28,6 @@
#endif
namespace llvm {
-
-int IsNAN (float f) { return isnan (f); }
-int IsNAN (double d) { return isnan (d); }
-
+ int IsNAN(float f) { return isnan(f); }
+ int IsNAN(double d) { return isnan(d); }
} // end namespace llvm;
-
-DEFINING_FILE_FOR(SupportIsNAN)
More information about the llvm-commits
mailing list