Module Name:    src
Committed By:   martin
Date:           Tue Feb 12 21:40:19 UTC 2013

Modified Files:
        src/lib/libm: Makefile
        src/lib/libm/src: s_fmal.c s_frexpl.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.132 -r1.133 src/lib/libm/Makefile
cvs rdiff -u -r1.2 -r1.3 src/lib/libm/src/s_fmal.c \
    src/lib/libm/src/s_frexpl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libm/Makefile
diff -u src/lib/libm/Makefile:1.132 src/lib/libm/Makefile:1.133
--- src/lib/libm/Makefile:1.132	Mon Feb 11 17:55:01 2013
+++ src/lib/libm/Makefile	Tue Feb 12 21:40:18 2013
@@ -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 @@ COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c
 .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 @@ COMMON_SRCS+= b_exp.c b_log.c b_tgamma.c
 	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 @@ COMMON_SRCS+= b_exp.c b_log.c b_tgamma.c
 	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
 

Index: src/lib/libm/src/s_fmal.c
diff -u src/lib/libm/src/s_fmal.c:1.2 src/lib/libm/src/s_fmal.c:1.3
--- src/lib/libm/src/s_fmal.c:1.2	Mon Feb 11 01:29:58 2013
+++ src/lib/libm/src/s_fmal.c	Tue Feb 12 21:40:19 2013
@@ -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 <d...@freebsd.org>
@@ -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 @@ __RCSID("$NetBSD: s_fmal.c,v 1.2 2013/02
 
 #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
Index: src/lib/libm/src/s_frexpl.c
diff -u src/lib/libm/src/s_frexpl.c:1.2 src/lib/libm/src/s_frexpl.c:1.3
--- src/lib/libm/src/s_frexpl.c:1.2	Mon Feb 11 01:47:04 2013
+++ src/lib/libm/src/s_frexpl.c	Tue Feb 12 21:40:19 2013
@@ -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 <d...@freebsd.org>
@@ -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 @@ __RCSID("$NetBSD: s_frexpl.c,v 1.2 2013/
 
 #include "math_private.h"
 
-#ifdef EXT_EXPBITS
+#ifdef __HAVE_LONG_DOUBLE
 #if LDBL_MAX_EXP != 0x4000
 #error "Unsupported long double format"
 #endif

Reply via email to