[llvm-commits] [compiler-rt] r144739 - in /compiler-rt/trunk/lib: floatdidf.c floatdisf.c floattidf.c floattisf.c floattixf.c floatundidf.c floatundisf.c floatuntidf.c floatuntisf.c floatuntixf.c int_lib.h

Daniel Dunbar daniel at zuster.org
Tue Nov 15 16:20:36 PST 2011


Author: ddunbar
Date: Tue Nov 15 18:20:36 2011
New Revision: 144739

URL: http://llvm.org/viewvc/llvm-project?rev=144739&view=rev
Log:
lib: Include float.h in int_lib.h, and eliminate duplicate includes from a number of source files.

Modified:
    compiler-rt/trunk/lib/floatdidf.c
    compiler-rt/trunk/lib/floatdisf.c
    compiler-rt/trunk/lib/floattidf.c
    compiler-rt/trunk/lib/floattisf.c
    compiler-rt/trunk/lib/floattixf.c
    compiler-rt/trunk/lib/floatundidf.c
    compiler-rt/trunk/lib/floatundisf.c
    compiler-rt/trunk/lib/floatuntidf.c
    compiler-rt/trunk/lib/floatuntisf.c
    compiler-rt/trunk/lib/floatuntixf.c
    compiler-rt/trunk/lib/int_lib.h

Modified: compiler-rt/trunk/lib/floatdidf.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/floatdidf.c?rev=144739&r1=144738&r2=144739&view=diff
==============================================================================
--- compiler-rt/trunk/lib/floatdidf.c (original)
+++ compiler-rt/trunk/lib/floatdidf.c Tue Nov 15 18:20:36 2011
@@ -13,7 +13,6 @@
  */
 
 #include "int_lib.h"
-#include <float.h>
 
 /* Returns: convert a to a double, rounding toward even. */
 

Modified: compiler-rt/trunk/lib/floatdisf.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/floatdisf.c?rev=144739&r1=144738&r2=144739&view=diff
==============================================================================
--- compiler-rt/trunk/lib/floatdisf.c (original)
+++ compiler-rt/trunk/lib/floatdisf.c Tue Nov 15 18:20:36 2011
@@ -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 

Modified: compiler-rt/trunk/lib/floattidf.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/floattidf.c?rev=144739&r1=144738&r2=144739&view=diff
==============================================================================
--- compiler-rt/trunk/lib/floattidf.c (original)
+++ compiler-rt/trunk/lib/floattidf.c Tue Nov 15 18:20:36 2011
@@ -15,7 +15,6 @@
 #if __x86_64
 
 #include "int_lib.h"
-#include <float.h>
 
 /* Returns: convert a to a double, rounding toward even.*/
 

Modified: compiler-rt/trunk/lib/floattisf.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/floattisf.c?rev=144739&r1=144738&r2=144739&view=diff
==============================================================================
--- compiler-rt/trunk/lib/floattisf.c (original)
+++ compiler-rt/trunk/lib/floattisf.c Tue Nov 15 18:20:36 2011
@@ -15,7 +15,6 @@
 #if __x86_64
 
 #include "int_lib.h"
-#include <float.h>
 
 /* Returns: convert a to a float, rounding toward even. */
 

Modified: compiler-rt/trunk/lib/floattixf.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/floattixf.c?rev=144739&r1=144738&r2=144739&view=diff
==============================================================================
--- compiler-rt/trunk/lib/floattixf.c (original)
+++ compiler-rt/trunk/lib/floattixf.c Tue Nov 15 18:20:36 2011
@@ -15,7 +15,6 @@
 #if __x86_64
 
 #include "int_lib.h"
-#include <float.h>
 
 /* Returns: convert a to a long double, rounding toward even. */
 

Modified: compiler-rt/trunk/lib/floatundidf.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/floatundidf.c?rev=144739&r1=144738&r2=144739&view=diff
==============================================================================
--- compiler-rt/trunk/lib/floatundidf.c (original)
+++ compiler-rt/trunk/lib/floatundidf.c Tue Nov 15 18:20:36 2011
@@ -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 

Modified: compiler-rt/trunk/lib/floatundisf.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/floatundisf.c?rev=144739&r1=144738&r2=144739&view=diff
==============================================================================
--- compiler-rt/trunk/lib/floatundisf.c (original)
+++ compiler-rt/trunk/lib/floatundisf.c Tue Nov 15 18:20:36 2011
@@ -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 

Modified: compiler-rt/trunk/lib/floatuntidf.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/floatuntidf.c?rev=144739&r1=144738&r2=144739&view=diff
==============================================================================
--- compiler-rt/trunk/lib/floatuntidf.c (original)
+++ compiler-rt/trunk/lib/floatuntidf.c Tue Nov 15 18:20:36 2011
@@ -15,7 +15,6 @@
 #if __x86_64
 
 #include "int_lib.h"
-#include <float.h>
 
 /* Returns: convert a to a double, rounding toward even. */
 

Modified: compiler-rt/trunk/lib/floatuntisf.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/floatuntisf.c?rev=144739&r1=144738&r2=144739&view=diff
==============================================================================
--- compiler-rt/trunk/lib/floatuntisf.c (original)
+++ compiler-rt/trunk/lib/floatuntisf.c Tue Nov 15 18:20:36 2011
@@ -15,7 +15,6 @@
 #if __x86_64
 
 #include "int_lib.h"
-#include <float.h>
 
 /* Returns: convert a to a float, rounding toward even. */
 

Modified: compiler-rt/trunk/lib/floatuntixf.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/floatuntixf.c?rev=144739&r1=144738&r2=144739&view=diff
==============================================================================
--- compiler-rt/trunk/lib/floatuntixf.c (original)
+++ compiler-rt/trunk/lib/floatuntixf.c Tue Nov 15 18:20:36 2011
@@ -15,7 +15,6 @@
 #if __x86_64
 
 #include "int_lib.h"
-#include <float.h>
 
 /* Returns: convert a to a long double, rounding toward even. */
 

Modified: compiler-rt/trunk/lib/int_lib.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/int_lib.h?rev=144739&r1=144738&r2=144739&view=diff
==============================================================================
--- compiler-rt/trunk/lib/int_lib.h (original)
+++ compiler-rt/trunk/lib/int_lib.h Tue Nov 15 18:20:36 2011
@@ -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(). */





More information about the llvm-commits mailing list