Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libm don't compile long double support for the havenots.



details:   https://anonhg.NetBSD.org/src/rev/c7c11c53d115
branches:  trunk
changeset: 757714:c7c11c53d115
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Sep 17 20:39:39 2010 +0000

description:
don't compile long double support for the havenots.

diffstat:

 lib/libm/complex/cimagl.c   |  6 ++++--
 lib/libm/complex/conjl.c    |  6 ++++--
 lib/libm/complex/cprojl.c   |  7 ++++---
 lib/libm/complex/creall.c   |  6 ++++--
 lib/libm/src/s_copysignl.c  |  6 ++++--
 lib/libm/src/s_fabsl.c      |  6 ++++--
 lib/libm/src/s_nextafterl.c |  6 ++++--
 7 files changed, 28 insertions(+), 15 deletions(-)

diffs (216 lines):

diff -r 5acf2231bb51 -r c7c11c53d115 lib/libm/complex/cimagl.c
--- a/lib/libm/complex/cimagl.c Thu Sep 16 20:39:50 2010 +0000
+++ b/lib/libm/complex/cimagl.c Fri Sep 17 20:39:39 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cimagl.c,v 1.1 2010/09/15 16:11:29 christos Exp $      */
+/*     $NetBSD: cimagl.c,v 1.2 2010/09/17 20:39:39 christos Exp $      */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -26,7 +26,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: cimagl.c,v 1.1 2010/09/15 16:11:29 christos Exp $");
+__RCSID("$NetBSD: cimagl.c,v 1.2 2010/09/17 20:39:39 christos Exp $");
 
 #include <complex.h>
 #include "../src/math_private.h"
@@ -35,6 +35,7 @@
  * cimagl(long double complex z)
  * This function returns the imaginary part value (as a real) of z.
  */
+#ifdef EXT_EXP_INFNAN
 long double
 cimagl(long double complex z)
 {
@@ -42,3 +43,4 @@
 
        return (IMAG_PART(w));
 }
+#endif
diff -r 5acf2231bb51 -r c7c11c53d115 lib/libm/complex/conjl.c
--- a/lib/libm/complex/conjl.c  Thu Sep 16 20:39:50 2010 +0000
+++ b/lib/libm/complex/conjl.c  Fri Sep 17 20:39:39 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: conjl.c,v 1.1 2010/09/15 16:11:29 christos Exp $       */
+/*     $NetBSD: conjl.c,v 1.2 2010/09/17 20:39:39 christos Exp $       */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -26,7 +26,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: conjl.c,v 1.1 2010/09/15 16:11:29 christos Exp $");
+__RCSID("$NetBSD: conjl.c,v 1.2 2010/09/17 20:39:39 christos Exp $");
 
 #include <complex.h>
 #include <math.h>
@@ -38,6 +38,7 @@
  * conjl(long double complex z)
  * This function returns the complex conjugate value of its argument, z.
  */
+#ifdef EXT_EXP_INFNAN
 long double complex
 conjl(long double complex z)
 {
@@ -47,3 +48,4 @@
 
        return (w.z);
 }
+#endif
diff -r 5acf2231bb51 -r c7c11c53d115 lib/libm/complex/cprojl.c
--- a/lib/libm/complex/cprojl.c Thu Sep 16 20:39:50 2010 +0000
+++ b/lib/libm/complex/cprojl.c Fri Sep 17 20:39:39 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cprojl.c,v 1.1 2010/09/15 16:11:29 christos Exp $      */
+/*     $NetBSD: cprojl.c,v 1.2 2010/09/17 20:39:39 christos Exp $      */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -26,7 +26,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: cprojl.c,v 1.1 2010/09/15 16:11:29 christos Exp $");
+__RCSID("$NetBSD: cprojl.c,v 1.2 2010/09/17 20:39:39 christos Exp $");
 
 #include <complex.h>
 #include <math.h>
@@ -46,7 +46,7 @@
  *
  * INFINITY + I * copysign(0.0, cimag(z))
  */
-
+#ifdef EXT_EXP_INFNAN
 long double complex
 cprojl(long double complex z)
 {
@@ -59,3 +59,4 @@
 
        return (w.z);
 }
+#endif
diff -r 5acf2231bb51 -r c7c11c53d115 lib/libm/complex/creall.c
--- a/lib/libm/complex/creall.c Thu Sep 16 20:39:50 2010 +0000
+++ b/lib/libm/complex/creall.c Fri Sep 17 20:39:39 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: creall.c,v 1.1 2010/09/15 16:11:29 christos Exp $      */
+/*     $NetBSD: creall.c,v 1.2 2010/09/17 20:39:39 christos Exp $      */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -26,7 +26,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: creall.c,v 1.1 2010/09/15 16:11:29 christos Exp $");
+__RCSID("$NetBSD: creall.c,v 1.2 2010/09/17 20:39:39 christos Exp $");
 
 #include <complex.h>
 #include "../src/math_private.h"
@@ -35,6 +35,7 @@
  * creall(long double complex z)
  * This function returns the real part value of z.
  */
+#ifdef EXT_EXP_INFNAN
 long double
 creall(long double complex z)
 {
@@ -42,3 +43,4 @@
 
        return (REAL_PART(w));
 }
+#endif
diff -r 5acf2231bb51 -r c7c11c53d115 lib/libm/src/s_copysignl.c
--- a/lib/libm/src/s_copysignl.c        Thu Sep 16 20:39:50 2010 +0000
+++ b/lib/libm/src/s_copysignl.c        Fri Sep 17 20:39:39 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: s_copysignl.c,v 1.1 2010/09/15 16:12:05 christos Exp $ */
+/*     $NetBSD: s_copysignl.c,v 1.2 2010/09/17 20:39:39 christos Exp $ */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -26,7 +26,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: s_copysignl.c,v 1.1 2010/09/15 16:12:05 christos Exp $");
+__RCSID("$NetBSD: s_copysignl.c,v 1.2 2010/09/17 20:39:39 christos Exp $");
 
 #include <math.h>
 #include <machine/ieee.h>
@@ -35,6 +35,7 @@
  * copysignl(long double x, long double y)
  * This function returns a value with the magnitude of x and the sign of y.
  */
+#ifdef EXT_EXP_INFNAN
 long double
 copysignl(long double x, long double y)
 {
@@ -47,3 +48,4 @@
 
        return (ux.extu_ld);
 }
+#endif
diff -r 5acf2231bb51 -r c7c11c53d115 lib/libm/src/s_fabsl.c
--- a/lib/libm/src/s_fabsl.c    Thu Sep 16 20:39:50 2010 +0000
+++ b/lib/libm/src/s_fabsl.c    Fri Sep 17 20:39:39 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: s_fabsl.c,v 1.1 2010/09/15 16:12:05 christos Exp $     */
+/*     $NetBSD: s_fabsl.c,v 1.2 2010/09/17 20:39:39 christos Exp $     */
 
 /*-
  * Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -26,7 +26,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: s_fabsl.c,v 1.1 2010/09/15 16:12:05 christos Exp $");
+__RCSID("$NetBSD: s_fabsl.c,v 1.2 2010/09/17 20:39:39 christos Exp $");
 
 #include <math.h>
 #include <machine/ieee.h>
@@ -35,6 +35,7 @@
  * fabsl(long double x)
  * This function returns the absolute value of its argumetn x, |x|.
  */
+#ifdef EXT_EXP_INFNAN
 long double
 fabsl(long double x)
 {
@@ -45,3 +46,4 @@
 
        return (ux.extu_ld);
 }
+#endif
diff -r 5acf2231bb51 -r c7c11c53d115 lib/libm/src/s_nextafterl.c
--- a/lib/libm/src/s_nextafterl.c       Thu Sep 16 20:39:50 2010 +0000
+++ b/lib/libm/src/s_nextafterl.c       Fri Sep 17 20:39:39 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: s_nextafterl.c,v 1.1 2010/09/15 16:12:05 christos Exp $        */
+/*     $NetBSD: s_nextafterl.c,v 1.2 2010/09/17 20:39:39 christos Exp $        */
 
 /* @(#)s_nextafter.c 5.1 93/09/24 */
 /*
@@ -13,12 +13,13 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: s_nextafterl.c,v 1.1 2010/09/15 16:12:05 christos Exp $");
+__RCSID("$NetBSD: s_nextafterl.c,v 1.2 2010/09/17 20:39:39 christos Exp $");
 
 #include <float.h>
 #include <math.h>
 #include <machine/ieee.h>
 
+#ifdef EXT_EXP_INFNAN
 #if LDBL_MAX_EXP != 0x4000
 #error "Unsupported long double format"
 #endif
@@ -90,3 +91,4 @@
 
        return ux.extu_ld;
 }
+#endif



Home | Main Index | Thread Index | Old Index