Source-Changes-HG archive

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

[src/trunk]: src/lib/libm Use __HAVE_LONG_DOUBLE instead of EXT_EXPBITS and i...



details:   https://anonhg.NetBSD.org/src/rev/ec79e4148d5f
branches:  trunk
changeset: 784880:ec79e4148d5f
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Feb 12 21:40:18 2013 +0000

description:
Use __HAVE_LONG_DOUBLE instead of EXT_EXPBITS and include s_nextafterl.c
as well as s_frexpl.c in the global list of "common" sources - as we
seem to have no arch redefining the standard double variant, it seems
unlikely we will have on redefining the long double version in assembler.

diffstat:

 lib/libm/Makefile       |  10 +++++-----
 lib/libm/src/s_fmal.c   |   6 +++---
 lib/libm/src/s_frexpl.c |   6 +++---
 3 files changed, 11 insertions(+), 11 deletions(-)

diffs (93 lines):

diff -r f5af92ed30f7 -r ec79e4148d5f lib/libm/Makefile
--- a/lib/libm/Makefile Tue Feb 12 21:25:12 2013 +0000
+++ b/lib/libm/Makefile Tue Feb 12 21:40:18 2013 +0000
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.132 2013/02/11 17:55:01 matt Exp $
+#  $NetBSD: Makefile,v 1.133 2013/02/12 21:40:18 martin Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -68,9 +68,9 @@
 .endif
 .PATH: ${.CURDIR}/arch/i387
 
-COMMON_SRCS+= fenv.c s_nextafterl.c s_nexttoward.c s_nexttowardf.c \
+COMMON_SRCS+= fenv.c s_nexttoward.c s_nexttowardf.c \
        s_nearbyint.c s_rintl.c \
-       s_scalbln.c s_frexpl.c # s_nan.c
+       s_scalbln.c # s_nan.c
 COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
 
 ARCH_SRCS = e_acos.S e_asin.S e_atan2.S e_exp.S e_expf.S e_fmod.S e_log.S \
@@ -155,7 +155,7 @@
        s_floor.c s_floorf.c s_frexpf.c s_ilogb.c s_ilogbf.c s_ilogbl.c \
        s_isinff.c s_isnanf.c s_ldexpf.c s_lib_version.c s_log1p.c \
        s_log1pf.c s_logb.c s_logbf.c s_logbl.c \
-       s_matherr.c s_modff.c s_nextafter.c \
+       s_matherr.c s_modff.c s_nextafter.c s_nextafterl.c \
        s_nextafterf.c s_remquo.c s_remquof.c s_rint.c s_rintf.c s_round.c s_roundf.c s_scalbn.c \
        s_scalbnf.c s_scalbnl.c s_signgam.c s_significand.c s_significandf.c s_sin.c \
        s_sinf.c s_tan.c s_tanf.c s_tanh.c s_tanhf.c s_tgammaf.c s_trunc.c s_truncf.c \
@@ -169,7 +169,7 @@
        w_pow.c w_powf.c w_remainder.c w_remainderf.c w_scalb.c w_scalbf.c \
        w_sinh.c w_sinhf.c w_sqrt.c w_sqrtf.c \
        lrint.c lrintf.c llrint.c llrintf.c lround.c lroundf.c llround.c \
-       llroundf.c s_frexp.c s_ldexp.c s_modf.c \
+       llroundf.c s_frexp.c s_frexpl.c s_ldexp.c s_modf.c \
        s_fmax.c s_fmaxf.c s_fmaxl.c \
        s_fmin.c s_fminf.c s_fminl.c s_fdim.c
 
diff -r f5af92ed30f7 -r ec79e4148d5f lib/libm/src/s_fmal.c
--- a/lib/libm/src/s_fmal.c     Tue Feb 12 21:25:12 2013 +0000
+++ b/lib/libm/src/s_fmal.c     Tue Feb 12 21:40:18 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: s_fmal.c,v 1.2 2013/02/11 01:29:58 christos Exp $      */
+/*     $NetBSD: s_fmal.c,v 1.3 2013/02/12 21:40:19 martin Exp $        */
 
 /*-
  * Copyright (c) 2005-2011 David Schultz <das%FreeBSD.ORG@localhost>
@@ -30,7 +30,7 @@
 #if 0
 __FBSDID("$FreeBSD: src/lib/msun/src/s_fmal.c,v 1.7 2011/10/21 06:30:43 das Exp $");
 #else
-__RCSID("$NetBSD: s_fmal.c,v 1.2 2013/02/11 01:29:58 christos Exp $");
+__RCSID("$NetBSD: s_fmal.c,v 1.3 2013/02/12 21:40:19 martin Exp $");
 #endif
 
 #include <machine/ieee.h>
@@ -40,7 +40,7 @@
 
 #include "math_private.h"
 
-#ifdef EXT_EXPBITS
+#ifdef __HAVE_LONG_DOUBLE
 /*
  * A struct dd represents a floating-point number with twice the precision
  * of a long double.  We maintain the invariant that "hi" stores the high-order
diff -r f5af92ed30f7 -r ec79e4148d5f lib/libm/src/s_frexpl.c
--- a/lib/libm/src/s_frexpl.c   Tue Feb 12 21:25:12 2013 +0000
+++ b/lib/libm/src/s_frexpl.c   Tue Feb 12 21:40:18 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: s_frexpl.c,v 1.2 2013/02/11 01:47:04 christos Exp $    */
+/*     $NetBSD: s_frexpl.c,v 1.3 2013/02/12 21:40:19 martin Exp $      */
 
 /*-
  * Copyright (c) 2004-2005 David Schultz <das%FreeBSD.ORG@localhost>
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: s_frexpl.c,v 1.2 2013/02/11 01:47:04 christos Exp $");
+__RCSID("$NetBSD: s_frexpl.c,v 1.3 2013/02/12 21:40:19 martin Exp $");
 
 #include <machine/ieee.h>
 #include <float.h>
@@ -37,7 +37,7 @@
 
 #include "math_private.h"
 
-#ifdef EXT_EXPBITS
+#ifdef __HAVE_LONG_DOUBLE
 #if LDBL_MAX_EXP != 0x4000
 #error "Unsupported long double format"
 #endif



Home | Main Index | Thread Index | Old Index