Source-Changes-HG archive

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

[src/trunk]: src/lib/libm/src Use normal style for checking for long double s...



details:   https://anonhg.NetBSD.org/src/rev/10760768a23c
branches:  trunk
changeset: 325001:10760768a23c
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Nov 29 22:16:10 2013 +0000

description:
Use normal style for checking for long double support. Add missing
aliases for fminl and fmaxl, fabsl is here just for symmetry.

diffstat:

 lib/libm/src/s_fabs.c  |  6 +++++-
 lib/libm/src/s_fabsl.c |  6 +++---
 lib/libm/src/s_fmax.c  |  6 +++++-
 lib/libm/src/s_fmaxl.c |  4 ++--
 lib/libm/src/s_fmin.c  |  6 +++++-
 lib/libm/src/s_fminl.c |  4 ++--
 6 files changed, 22 insertions(+), 10 deletions(-)

diffs (138 lines):

diff -r 320b0a489efa -r 10760768a23c lib/libm/src/s_fabs.c
--- a/lib/libm/src/s_fabs.c     Fri Nov 29 22:15:26 2013 +0000
+++ b/lib/libm/src/s_fabs.c     Fri Nov 29 22:16:10 2013 +0000
@@ -12,7 +12,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: s_fabs.c,v 1.10 2002/05/26 22:01:55 wiz Exp $");
+__RCSID("$NetBSD: s_fabs.c,v 1.11 2013/11/29 22:16:10 joerg Exp $");
 #endif
 
 /*
@@ -22,6 +22,10 @@
 #include "math.h"
 #include "math_private.h"
 
+#ifndef __HAVE_LONG_DOUBLE
+__strong_alias(fabsl, fabs)
+#endif
+
 double
 fabs(double x)
 {
diff -r 320b0a489efa -r 10760768a23c lib/libm/src/s_fabsl.c
--- a/lib/libm/src/s_fabsl.c    Fri Nov 29 22:15:26 2013 +0000
+++ b/lib/libm/src/s_fabsl.c    Fri Nov 29 22:16:10 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: s_fabsl.c,v 1.2 2010/09/17 20:39:39 christos Exp $     */
+/*     $NetBSD: s_fabsl.c,v 1.3 2013/11/29 22:16:10 joerg 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.2 2010/09/17 20:39:39 christos Exp $");
+__RCSID("$NetBSD: s_fabsl.c,v 1.3 2013/11/29 22:16:10 joerg Exp $");
 
 #include <math.h>
 #include <machine/ieee.h>
@@ -35,7 +35,7 @@
  * fabsl(long double x)
  * This function returns the absolute value of its argumetn x, |x|.
  */
-#ifdef EXT_EXP_INFNAN
+#ifdef __HAVE_LONG_DOUBLE
 long double
 fabsl(long double x)
 {
diff -r 320b0a489efa -r 10760768a23c lib/libm/src/s_fmax.c
--- a/lib/libm/src/s_fmax.c     Fri Nov 29 22:15:26 2013 +0000
+++ b/lib/libm/src/s_fmax.c     Fri Nov 29 22:16:10 2013 +0000
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: s_fmax.c,v 1.2 2010/03/08 01:05:20 snj Exp $");
+__RCSID("$NetBSD: s_fmax.c,v 1.3 2013/11/29 22:16:10 joerg Exp $");
 #ifdef notdef
 __FBSDID("$FreeBSD: src/lib/msun/src/s_fmax.c,v 1.1 2004/06/30 07:04:01 das Exp $");
 #endif
@@ -34,6 +34,10 @@
 
 #include <machine/ieee.h>
 
+#ifndef __HAVE_LONG_DOUBLE
+__strong_alias(fmaxl, fmax)
+#endif
+
 double
 fmax(double x, double y)
 {
diff -r 320b0a489efa -r 10760768a23c lib/libm/src/s_fmaxl.c
--- a/lib/libm/src/s_fmaxl.c    Fri Nov 29 22:15:26 2013 +0000
+++ b/lib/libm/src/s_fmaxl.c    Fri Nov 29 22:16:10 2013 +0000
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: s_fmaxl.c,v 1.3 2011/07/04 11:46:41 mrg Exp $");
+__RCSID("$NetBSD: s_fmaxl.c,v 1.4 2013/11/29 22:16:10 joerg Exp $");
 #ifdef notdef
 __FBSDID("$FreeBSD: src/lib/msun/src/s_fmaxl.c,v 1.1 2004/06/30 07:04:01 das Exp $");
 #endif
@@ -34,7 +34,7 @@
 #include <math.h>
 
 #include <machine/ieee.h>
-#ifdef EXT_EXP_INFNAN
+#ifdef __HAVE_LONG_DOUBLE
 long double
 fmaxl(long double x, long double y)
 {
diff -r 320b0a489efa -r 10760768a23c lib/libm/src/s_fmin.c
--- a/lib/libm/src/s_fmin.c     Fri Nov 29 22:15:26 2013 +0000
+++ b/lib/libm/src/s_fmin.c     Fri Nov 29 22:16:10 2013 +0000
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: s_fmin.c,v 1.1 2009/10/04 22:04:30 christos Exp $");
+__RCSID("$NetBSD: s_fmin.c,v 1.2 2013/11/29 22:16:10 joerg Exp $");
 #ifdef notdef
 __FBSDID("$FreeBSD: src/lib/msun/src/s_fmin.c,v 1.1 2004/06/30 07:04:01 das Exp $");
 #endif
@@ -34,6 +34,10 @@
 
 #include <machine/ieee.h>
 
+#ifndef __HAVE_LONG_DOUBLE
+__strong_alias(fminl, fmin)
+#endif
+
 double
 fmin(double x, double y)
 {
diff -r 320b0a489efa -r 10760768a23c lib/libm/src/s_fminl.c
--- a/lib/libm/src/s_fminl.c    Fri Nov 29 22:15:26 2013 +0000
+++ b/lib/libm/src/s_fminl.c    Fri Nov 29 22:16:10 2013 +0000
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: s_fminl.c,v 1.3 2011/07/04 11:46:41 mrg Exp $");
+__RCSID("$NetBSD: s_fminl.c,v 1.4 2013/11/29 22:16:10 joerg Exp $");
 #ifdef notdef
 __FBSDID("$FreeBSD: src/lib/msun/src/s_fminl.c,v 1.1 2004/06/30 07:04:01 das Exp $");
 #endif
@@ -34,7 +34,7 @@
 #include <string.h>
 
 #include <machine/ieee.h>
-#ifdef EXT_EXP_INFNAN
+#ifdef __HAVE_LONG_DOUBLE
 long double
 fminl(long double x, long double y)
 {



Home | Main Index | Thread Index | Old Index