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 | 2bf93403298e46a32423c9e66d26b5436d0748ea (patch) | |
tree | 24856f78dd7beb8a9b62571021a92fab545d3f25 /lib | |
parent | 1132cf7dac918b0b8134aeb686e90bcc69e53b94 (diff) | |
download | compiler-rt-2bf93403298e46a32423c9e66d26b5436d0748ea.tar.gz compiler-rt-2bf93403298e46a32423c9e66d26b5436d0748ea.tar.bz2 compiler-rt-2bf93403298e46a32423c9e66d26b5436d0748ea.tar.xz |
lib: Include float.h in int_lib.h, and eliminate duplicate includes from a number of source files.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@144739 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/floatdidf.c | 1 | ||||
-rw-r--r-- | lib/floatdisf.c | 2 | ||||
-rw-r--r-- | lib/floattidf.c | 1 | ||||
-rw-r--r-- | lib/floattisf.c | 1 | ||||
-rw-r--r-- | lib/floattixf.c | 1 | ||||
-rw-r--r-- | lib/floatundidf.c | 2 | ||||
-rw-r--r-- | lib/floatundisf.c | 2 | ||||
-rw-r--r-- | lib/floatuntidf.c | 1 | ||||
-rw-r--r-- | lib/floatuntisf.c | 1 | ||||
-rw-r--r-- | lib/floatuntixf.c | 1 | ||||
-rw-r--r-- | lib/int_lib.h | 4 |
11 files changed, 4 insertions, 13 deletions
diff --git a/lib/floatdidf.c b/lib/floatdidf.c index fd12c300..2af9e106 100644 --- a/lib/floatdidf.c +++ b/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/lib/floatdisf.c b/lib/floatdisf.c index 5a213c09..66073079 100644 --- a/lib/floatdisf.c +++ b/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/lib/floattidf.c b/lib/floattidf.c index f61844d5..3cafea8a 100644 --- a/lib/floattidf.c +++ b/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/lib/floattisf.c b/lib/floattisf.c index 7eb761d7..ab33e4aa 100644 --- a/lib/floattisf.c +++ b/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/lib/floattixf.c b/lib/floattixf.c index e4bcb5ff..852acc70 100644 --- a/lib/floattixf.c +++ b/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/lib/floatundidf.c b/lib/floatundidf.c index 0b328d0c..67917017 100644 --- a/lib/floatundidf.c +++ b/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/lib/floatundisf.c b/lib/floatundisf.c index 9ddafc38..1bf5fbb4 100644 --- a/lib/floatundisf.c +++ b/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/lib/floatuntidf.c b/lib/floatuntidf.c index bab7483d..d0889a07 100644 --- a/lib/floatuntidf.c +++ b/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/lib/floatuntisf.c b/lib/floatuntisf.c index 0ab6d7e5..f5527583 100644 --- a/lib/floatuntisf.c +++ b/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/lib/floatuntixf.c b/lib/floatuntixf.c index a84709ae..00c07d8e 100644 --- a/lib/floatuntixf.c +++ b/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/lib/int_lib.h b/lib/int_lib.h index e265ced6..9725f6e6 100644 --- a/lib/int_lib.h +++ b/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(). */ |