[llvm-commits] [compiler-rt] r78457 - in /compiler-rt/trunk/lib: ppc/divtc3.c ppc/multc3.c x86_64/floatdidf.c x86_64/floatdisf.c x86_64/floatdixf.c
Edward O'Callaghan
eocallaghan at auroraux.org
Fri Aug 7 21:43:57 PDT 2009
Author: evocallaghan
Date: Fri Aug 7 23:43:56 2009
New Revision: 78457
URL: http://llvm.org/viewvc/llvm-project?rev=78457&view=rev
Log:
Optimized versions now buildable on Solaris.
Modified:
compiler-rt/trunk/lib/ppc/divtc3.c
compiler-rt/trunk/lib/ppc/multc3.c
compiler-rt/trunk/lib/x86_64/floatdidf.c
compiler-rt/trunk/lib/x86_64/floatdisf.c
compiler-rt/trunk/lib/x86_64/floatdixf.c
Modified: compiler-rt/trunk/lib/ppc/divtc3.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/ppc/divtc3.c?rev=78457&r1=78456&r2=78457&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ppc/divtc3.c (original)
+++ compiler-rt/trunk/lib/ppc/divtc3.c Fri Aug 7 23:43:56 2009
@@ -1,9 +1,14 @@
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
+/* This file is distributed under the University of Illinois Open Source
+ * License. See LICENSE.TXT for details.
+ */
#include "DD.h"
#include <math.h>
+#if !defined(INFINITY) && defined(HUGE_VAL)
+#define INFINITY HUGE_VAL
+#endif /* INFINITY */
+
#define makeFinite(x) { \
(x).hi = __builtin_copysign(isinf((x).hi) ? 1.0 : 0.0, (x).hi); \
(x).lo = 0.0; \
Modified: compiler-rt/trunk/lib/ppc/multc3.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/ppc/multc3.c?rev=78457&r1=78456&r2=78457&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ppc/multc3.c (original)
+++ compiler-rt/trunk/lib/ppc/multc3.c Fri Aug 7 23:43:56 2009
@@ -1,9 +1,14 @@
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
+/* This file is distributed under the University of Illinois Open Source
+ * License. See LICENSE.TXT for details.
+ */
#include "DD.h"
#include <math.h>
+#if !defined(INFINITY) && defined(HUGE_VAL)
+#define INFINITY HUGE_VAL
+#endif /* INFINITY */
+
#define makeFinite(x) { \
(x).hi = __builtin_copysign(isinf((x).hi) ? 1.0 : 0.0, (x).hi); \
(x).lo = 0.0; \
Modified: compiler-rt/trunk/lib/x86_64/floatdidf.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/x86_64/floatdidf.c?rev=78457&r1=78456&r2=78457&view=diff
==============================================================================
--- compiler-rt/trunk/lib/x86_64/floatdidf.c (original)
+++ compiler-rt/trunk/lib/x86_64/floatdidf.c Fri Aug 7 23:43:56 2009
@@ -1,7 +1,8 @@
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
+/* This file is distributed under the University of Illinois Open Source
+ * License. See LICENSE.TXT for details.
+ */
-// double __floatdidf(di_int a);
+/* double __floatdidf(di_int a); */
#ifdef __x86_64__
@@ -12,4 +13,4 @@
return (double)a;
}
-#endif // __x86_64__
\ No newline at end of file
+#endif /* __x86_64__ */
Modified: compiler-rt/trunk/lib/x86_64/floatdisf.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/x86_64/floatdisf.c?rev=78457&r1=78456&r2=78457&view=diff
==============================================================================
--- compiler-rt/trunk/lib/x86_64/floatdisf.c (original)
+++ compiler-rt/trunk/lib/x86_64/floatdisf.c Fri Aug 7 23:43:56 2009
@@ -1,5 +1,6 @@
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
+/* This file is distributed under the University of Illinois Open Source
+ * License. See LICENSE.TXT for details.
+ */
#ifdef __x86_64__
@@ -10,4 +11,4 @@
return (float)a;
}
-#endif // __x86_64__
\ No newline at end of file
+#endif /* __x86_64__ */
Modified: compiler-rt/trunk/lib/x86_64/floatdixf.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/x86_64/floatdixf.c?rev=78457&r1=78456&r2=78457&view=diff
==============================================================================
--- compiler-rt/trunk/lib/x86_64/floatdixf.c (original)
+++ compiler-rt/trunk/lib/x86_64/floatdixf.c Fri Aug 7 23:43:56 2009
@@ -1,7 +1,8 @@
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
+/* This file is distributed under the University of Illinois Open Source
+ * License. See LICENSE.TXT for details.
+ */
-// long double __floatdixf(di_int a);
+/* long double __floatdixf(di_int a); */
#ifdef __x86_64__
@@ -12,4 +13,4 @@
return (long double)a;
}
-#endif // __i386__
+#endif /* __i386__ */
More information about the llvm-commits
mailing list