[llvm-commits] [compiler-rt] r78037 - in /compiler-rt/trunk/lib: divdc3.c divsc3.c divxc3.c int_lib.h muldc3.c mulsc3.c mulxc3.c
Edward O'Callaghan
eocallaghan at auroraux.org
Mon Aug 3 20:30:18 PDT 2009
Author: evocallaghan
Date: Mon Aug 3 22:30:10 2009
New Revision: 78037
URL: http://llvm.org/viewvc/llvm-project?rev=78037&view=rev
Log:
Refactor out common pre-processor code.
Modified:
compiler-rt/trunk/lib/divdc3.c
compiler-rt/trunk/lib/divsc3.c
compiler-rt/trunk/lib/divxc3.c
compiler-rt/trunk/lib/int_lib.h
compiler-rt/trunk/lib/muldc3.c
compiler-rt/trunk/lib/mulsc3.c
compiler-rt/trunk/lib/mulxc3.c
Modified: compiler-rt/trunk/lib/divdc3.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/divdc3.c?rev=78037&r1=78036&r2=78037&view=diff
==============================================================================
--- compiler-rt/trunk/lib/divdc3.c (original)
+++ compiler-rt/trunk/lib/divdc3.c Mon Aug 3 22:30:10 2009
@@ -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
Modified: compiler-rt/trunk/lib/divsc3.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/divsc3.c?rev=78037&r1=78036&r2=78037&view=diff
==============================================================================
--- compiler-rt/trunk/lib/divsc3.c (original)
+++ compiler-rt/trunk/lib/divsc3.c Mon Aug 3 22:30:10 2009
@@ -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
Modified: compiler-rt/trunk/lib/divxc3.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/divxc3.c?rev=78037&r1=78036&r2=78037&view=diff
==============================================================================
--- compiler-rt/trunk/lib/divxc3.c (original)
+++ compiler-rt/trunk/lib/divxc3.c Mon Aug 3 22:30:10 2009
@@ -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
Modified: compiler-rt/trunk/lib/int_lib.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/int_lib.h?rev=78037&r1=78036&r2=78037&view=diff
==============================================================================
--- compiler-rt/trunk/lib/int_lib.h (original)
+++ compiler-rt/trunk/lib/int_lib.h Mon Aug 3 22:30:10 2009
@@ -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)
Modified: compiler-rt/trunk/lib/muldc3.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/muldc3.c?rev=78037&r1=78036&r2=78037&view=diff
==============================================================================
--- compiler-rt/trunk/lib/muldc3.c (original)
+++ compiler-rt/trunk/lib/muldc3.c Mon Aug 3 22:30:10 2009
@@ -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
Modified: compiler-rt/trunk/lib/mulsc3.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/mulsc3.c?rev=78037&r1=78036&r2=78037&view=diff
==============================================================================
--- compiler-rt/trunk/lib/mulsc3.c (original)
+++ compiler-rt/trunk/lib/mulsc3.c Mon Aug 3 22:30:10 2009
@@ -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
Modified: compiler-rt/trunk/lib/mulxc3.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/mulxc3.c?rev=78037&r1=78036&r2=78037&view=diff
==============================================================================
--- compiler-rt/trunk/lib/mulxc3.c (original)
+++ compiler-rt/trunk/lib/mulxc3.c Mon Aug 3 22:30:10 2009
@@ -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
More information about the llvm-commits
mailing list