summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--compiler-rt/lib/divdc3.c4
-rw-r--r--compiler-rt/lib/divsc3.c4
-rw-r--r--compiler-rt/lib/divxc3.c4
-rw-r--r--compiler-rt/lib/int_lib.h5
-rw-r--r--compiler-rt/lib/muldc3.c4
-rw-r--r--compiler-rt/lib/mulsc3.c4
-rw-r--r--compiler-rt/lib/mulxc3.c4
7 files changed, 5 insertions, 24 deletions
diff --git a/compiler-rt/lib/divdc3.c b/compiler-rt/lib/divdc3.c
index ccdf526a886..1b19e665f61 100644
--- a/compiler-rt/lib/divdc3.c
+++ b/compiler-rt/lib/divdc3.c
@@ -15,10 +15,6 @@
#include <math.h>
#include <complex.h>
-#if !defined(INFINITY) && defined(HUGE_VAL)
-#define INFINITY HUGE_VAL
-#endif
-
// Returns: the quotient of (a + ib) / (c + id)
double _Complex
diff --git a/compiler-rt/lib/divsc3.c b/compiler-rt/lib/divsc3.c
index f2529970c28..bea15cdc4e0 100644
--- a/compiler-rt/lib/divsc3.c
+++ b/compiler-rt/lib/divsc3.c
@@ -15,10 +15,6 @@
#include <math.h>
#include <complex.h>
-#if !defined(INFINITY) && defined(HUGE_VAL)
-#define INFINITY HUGE_VAL
-#endif
-
// Returns: the quotient of (a + ib) / (c + id)
float _Complex
diff --git a/compiler-rt/lib/divxc3.c b/compiler-rt/lib/divxc3.c
index 982397f5f12..4ee09b9dbb6 100644
--- a/compiler-rt/lib/divxc3.c
+++ b/compiler-rt/lib/divxc3.c
@@ -17,10 +17,6 @@
#include <math.h>
#include <complex.h>
-#if !defined(INFINITY) && defined(HUGE_VAL)
-#define INFINITY HUGE_VAL
-#endif
-
// Returns: the quotient of (a + ib) / (c + id)
long double _Complex
diff --git a/compiler-rt/lib/int_lib.h b/compiler-rt/lib/int_lib.h
index e8365506f3a..3690d2ebef7 100644
--- a/compiler-rt/lib/int_lib.h
+++ b/compiler-rt/lib/int_lib.h
@@ -19,6 +19,11 @@
// Assumption: right shift of signed negative is arithmetic shift
#include <limits.h>
+#include <math.h>
+
+#if !defined(INFINITY) && defined(HUGE_VAL)
+#define INFINITY HUGE_VAL
+#endif
// TODO: Improve this to minimal pre-processor hackish'ness.
#if defined (__SVR4) && defined (__sun)
diff --git a/compiler-rt/lib/muldc3.c b/compiler-rt/lib/muldc3.c
index 3549823c2ef..b945e8e3827 100644
--- a/compiler-rt/lib/muldc3.c
+++ b/compiler-rt/lib/muldc3.c
@@ -15,10 +15,6 @@
#include <math.h>
#include <complex.h>
-#if !defined(INFINITY) && defined(HUGE_VAL)
-#define INFINITY HUGE_VAL
-#endif
-
// Returns: the product of a + ib and c + id
double _Complex
diff --git a/compiler-rt/lib/mulsc3.c b/compiler-rt/lib/mulsc3.c
index c723032cd73..bc47a47ea41 100644
--- a/compiler-rt/lib/mulsc3.c
+++ b/compiler-rt/lib/mulsc3.c
@@ -15,10 +15,6 @@
#include <math.h>
#include <complex.h>
-#if !defined(INFINITY) && defined(HUGE_VAL)
-#define INFINITY HUGE_VAL
-#endif
-
// Returns: the product of a + ib and c + id
float _Complex
diff --git a/compiler-rt/lib/mulxc3.c b/compiler-rt/lib/mulxc3.c
index 840e458b9ae..e38ab0dcf6e 100644
--- a/compiler-rt/lib/mulxc3.c
+++ b/compiler-rt/lib/mulxc3.c
@@ -17,10 +17,6 @@
#include <math.h>
#include <complex.h>
-#if !defined(INFINITY) && defined(HUGE_VAL)
-#define INFINITY HUGE_VAL
-#endif
-
// Returns: the product of a + ib and c + id
long double _Complex
OpenPOWER on IntegriCloud