Source-Changes-HG archive

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

[src/trunk]: src/lib/libm Retire ldexp sources. scalbn has the aliases.



details:   https://anonhg.NetBSD.org/src/rev/0c2deb505dba
branches:  trunk
changeset: 786400:0c2deb505dba
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Apr 27 22:58:15 2013 +0000

description:
Retire ldexp sources. scalbn has the aliases.

diffstat:

 lib/libm/Makefile       |   6 +++---
 lib/libm/src/s_ldexp.c  |  30 ------------------------------
 lib/libm/src/s_ldexpf.c |  33 ---------------------------------
 3 files changed, 3 insertions(+), 66 deletions(-)

diffs (98 lines):

diff -r 8828a0e4f873 -r 0c2deb505dba lib/libm/Makefile
--- a/lib/libm/Makefile Sat Apr 27 22:56:39 2013 +0000
+++ b/lib/libm/Makefile Sat Apr 27 22:58:15 2013 +0000
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.134 2013/04/06 12:16:49 uebayasi Exp $
+#  $NetBSD: Makefile,v 1.135 2013/04/27 22:58:15 joerg Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -153,7 +153,7 @@
        s_erff.c s_exp2.c s_exp2f.c s_expm1.c s_expm1f.c s_fabsf.c s_fabsl.c \
        s_finite.c s_finitef.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_isinff.c s_isnanf.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_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 \
@@ -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_frexpl.c s_ldexp.c s_modf.c \
+       llroundf.c s_frexp.c s_frexpl.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 8828a0e4f873 -r 0c2deb505dba lib/libm/src/s_ldexp.c
--- a/lib/libm/src/s_ldexp.c    Sat Apr 27 22:56:39 2013 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,30 +0,0 @@
-/* @(#)s_ldexp0.c 5.1 93/09/24 */
-/*
- * ====================================================
- * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
-#include <sys/cdefs.h>
-#if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: s_ldexp.c,v 1.11 2010/04/23 19:17:07 drochner Exp $");
-#endif
-
-#include "namespace.h"
-#include "math.h"
-#include "math_private.h"
-#include <errno.h>
-
-double
-ldexp(double value, int exp0)
-{
-       if(!finite(value)||value==0.0) return value;
-       value = scalbn(value,exp0);
-       if(!finite(value)||value==0.0) errno = ERANGE;
-       return value;
-}
diff -r 8828a0e4f873 -r 0c2deb505dba lib/libm/src/s_ldexpf.c
--- a/lib/libm/src/s_ldexpf.c   Sat Apr 27 22:56:39 2013 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
-/* s_ldexp0f.c -- float version of s_ldexp0.c.
- * Conversion to float by Ian Lance Taylor, Cygnus Support, ian%cygnus.com@localhost.
- */
-
-/*
- * ====================================================
- * Copyright (C) 1993 by Sun Microsystems, Inc. All rights reserved.
- *
- * Developed at SunPro, a Sun Microsystems, Inc. business.
- * Permission to use, copy, modify, and distribute this
- * software is freely granted, provided that this notice
- * is preserved.
- * ====================================================
- */
-
-#include <sys/cdefs.h>
-#if defined(LIBM_SCCS) && !defined(lint)
-__RCSID("$NetBSD: s_ldexpf.c,v 1.8 2010/04/23 19:17:07 drochner Exp $");
-#endif
-
-#include "namespace.h"
-#include "math.h"
-#include "math_private.h"
-#include <errno.h>
-
-float
-ldexpf(float value, int exp0)
-{
-       if(!finitef(value)||value==(float)0.0) return value;
-       value = scalbnf(value,exp0);
-       if(!finitef(value)||value==(float)0.0) errno = ERANGE;
-       return value;
-}



Home | Main Index | Thread Index | Old Index