diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2011-11-16 00:20:36 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2011-11-16 00:20:36 +0000 |
| commit | 7205b23e794c660032100c7196b3439218bee879 (patch) | |
| tree | 27a9031cc1f8ac3221900e2120113af08b6a3d0f /compiler-rt/lib | |
| parent | 6328e7b1b372cd5a29cf2440ed02248e85d3715f (diff) | |
| download | bcm5719-llvm-7205b23e794c660032100c7196b3439218bee879.tar.gz bcm5719-llvm-7205b23e794c660032100c7196b3439218bee879.zip | |
lib: Include float.h in int_lib.h, and eliminate duplicate includes from a number of source files.
llvm-svn: 144739
Diffstat (limited to 'compiler-rt/lib')
| -rw-r--r-- | compiler-rt/lib/floatdidf.c | 1 | ||||
| -rw-r--r-- | compiler-rt/lib/floatdisf.c | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/floattidf.c | 1 | ||||
| -rw-r--r-- | compiler-rt/lib/floattisf.c | 1 | ||||
| -rw-r--r-- | compiler-rt/lib/floattixf.c | 1 | ||||
| -rw-r--r-- | compiler-rt/lib/floatundidf.c | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/floatundisf.c | 2 | ||||
| -rw-r--r-- | compiler-rt/lib/floatuntidf.c | 1 | ||||
| -rw-r--r-- | compiler-rt/lib/floatuntisf.c | 1 | ||||
| -rw-r--r-- | compiler-rt/lib/floatuntixf.c | 1 | ||||
| -rw-r--r-- | compiler-rt/lib/int_lib.h | 4 |
11 files changed, 4 insertions, 13 deletions
diff --git a/compiler-rt/lib/floatdidf.c b/compiler-rt/lib/floatdidf.c index fd12c300381..2af9e106d93 100644 --- a/compiler-rt/lib/floatdidf.c +++ b/compiler-rt/lib/floatdidf.c @@ -13,7 +13,6 @@ */ #include "int_lib.h" -#include <float.h> /* Returns: convert a to a double, rounding toward even. */ diff --git a/compiler-rt/lib/floatdisf.c b/compiler-rt/lib/floatdisf.c index 5a213c091f0..66073079328 100644 --- a/compiler-rt/lib/floatdisf.c +++ b/compiler-rt/lib/floatdisf.c @@ -12,8 +12,6 @@ *===----------------------------------------------------------------------=== */ -#include <float.h> - /* Returns: convert a to a float, rounding toward even.*/ /* Assumption: float is a IEEE 32 bit floating point type diff --git a/compiler-rt/lib/floattidf.c b/compiler-rt/lib/floattidf.c index f61844d5e59..3cafea8a2e7 100644 --- a/compiler-rt/lib/floattidf.c +++ b/compiler-rt/lib/floattidf.c @@ -15,7 +15,6 @@ #if __x86_64 #include "int_lib.h" -#include <float.h> /* Returns: convert a to a double, rounding toward even.*/ diff --git a/compiler-rt/lib/floattisf.c b/compiler-rt/lib/floattisf.c index 7eb761d7ab2..ab33e4aada5 100644 --- a/compiler-rt/lib/floattisf.c +++ b/compiler-rt/lib/floattisf.c @@ -15,7 +15,6 @@ #if __x86_64 #include "int_lib.h" -#include <float.h> /* Returns: convert a to a float, rounding toward even. */ diff --git a/compiler-rt/lib/floattixf.c b/compiler-rt/lib/floattixf.c index e4bcb5ff009..852acc70746 100644 --- a/compiler-rt/lib/floattixf.c +++ b/compiler-rt/lib/floattixf.c @@ -15,7 +15,6 @@ #if __x86_64 #include "int_lib.h" -#include <float.h> /* Returns: convert a to a long double, rounding toward even. */ diff --git a/compiler-rt/lib/floatundidf.c b/compiler-rt/lib/floatundidf.c index 0b328d0cc8b..67917017ec7 100644 --- a/compiler-rt/lib/floatundidf.c +++ b/compiler-rt/lib/floatundidf.c @@ -12,8 +12,6 @@ * ===----------------------------------------------------------------------=== */ -#include <float.h> - /* Returns: convert a to a double, rounding toward even. */ /* Assumption: double is a IEEE 64 bit floating point type diff --git a/compiler-rt/lib/floatundisf.c b/compiler-rt/lib/floatundisf.c index 9ddafc38f56..1bf5fbb4543 100644 --- a/compiler-rt/lib/floatundisf.c +++ b/compiler-rt/lib/floatundisf.c @@ -12,8 +12,6 @@ *===----------------------------------------------------------------------=== */ -#include <float.h> - /* Returns: convert a to a float, rounding toward even. */ /* Assumption: float is a IEEE 32 bit floating point type diff --git a/compiler-rt/lib/floatuntidf.c b/compiler-rt/lib/floatuntidf.c index bab7483d99e..d0889a0744f 100644 --- a/compiler-rt/lib/floatuntidf.c +++ b/compiler-rt/lib/floatuntidf.c @@ -15,7 +15,6 @@ #if __x86_64 #include "int_lib.h" -#include <float.h> /* Returns: convert a to a double, rounding toward even. */ diff --git a/compiler-rt/lib/floatuntisf.c b/compiler-rt/lib/floatuntisf.c index 0ab6d7e56f5..f5527583ce5 100644 --- a/compiler-rt/lib/floatuntisf.c +++ b/compiler-rt/lib/floatuntisf.c @@ -15,7 +15,6 @@ #if __x86_64 #include "int_lib.h" -#include <float.h> /* Returns: convert a to a float, rounding toward even. */ diff --git a/compiler-rt/lib/floatuntixf.c b/compiler-rt/lib/floatuntixf.c index a84709aef60..00c07d8ed4e 100644 --- a/compiler-rt/lib/floatuntixf.c +++ b/compiler-rt/lib/floatuntixf.c @@ -15,7 +15,6 @@ #if __x86_64 #include "int_lib.h" -#include <float.h> /* Returns: convert a to a long double, rounding toward even. */ diff --git a/compiler-rt/lib/int_lib.h b/compiler-rt/lib/int_lib.h index e265ced6014..9725f6e62a7 100644 --- a/compiler-rt/lib/int_lib.h +++ b/compiler-rt/lib/int_lib.h @@ -31,9 +31,13 @@ # define COMPILER_RT_ABI #endif +/* Include the standard compiler builtin headers we use functionality from. */ #include <limits.h> #include <stdint.h> #include <stdbool.h> +#include <float.h> + +/* Include the system math.h, which we use in a number of places. */ #include <math.h> /* If compiling for kernel use, call panic() instead of abort(). */ |

