Source-Changes-HG archive

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

[src/trunk]: src/lib/libm Deprecate ieee(3).



details:   https://anonhg.NetBSD.org/src/rev/9e706bc148af
branches:  trunk
changeset: 767998:9e706bc148af
user:      jruoho <jruoho%NetBSD.org@localhost>
date:      Sat Aug 06 11:01:12 2011 +0000

description:
Deprecate ieee(3).

diffstat:

 lib/libm/Makefile     |   6 +-
 lib/libm/man/finite.3 |  82 +++++++++++++++++++++++++++++++++++++++++++++++++++
 lib/libm/man/ieee.3   |  71 --------------------------------------------
 3 files changed, 85 insertions(+), 74 deletions(-)

diffs (190 lines):

diff -r f8c1241a798c -r 9e706bc148af lib/libm/Makefile
--- a/lib/libm/Makefile Sat Aug 06 10:51:26 2011 +0000
+++ b/lib/libm/Makefile Sat Aug 06 11:01:12 2011 +0000
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.117 2011/08/06 10:51:26 jruoho Exp $
+#  $NetBSD: Makefile,v 1.118 2011/08/06 11:01:12 jruoho Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -209,7 +209,7 @@
 MAN+=  acos.3 acosh.3 asin.3 asinh.3 atan.3 atan2.3 atanh.3 \
        ceil.3 copysign.3 cos.3 cosh.3 \
        erf.3 exp.3 \
-       fabs.3 fmod.3 frexp.3 hypot.3 ieee.3 \
+       fabs.3 finite.3 fmod.3 frexp.3 hypot.3 \
        ieee_test.3 ilogb.3 isinff.3 j0.3 ldexp.3 lgamma.3 lrint.3 \
        math.3 modf.3 nextafter.3 \
        remainder.3 rint.3 round.3 \
@@ -252,9 +252,9 @@
        exp.3 pow.3 exp.3 powf.3                                        \
        exp.3 log2.3 exp.3 log2f.3
 MLINKS+=fabs.3 fabsf.3
+MLINKS+=finite.3 finitef.3
 MLINKS+=fmod.3 fmodf.3
 MLINKS+=hypot.3 hypotf.3
-MLINKS+=ieee.3 finite.3 ieee.3 finitef.3
 MLINKS+=ieee_test.3 logb.3 ieee_test.3 logbf.3 ieee_test.3 logbl.3
 MLINKS+=ieee_test.3 scalb.3 ieee_test.3 scalbf.3
 MLINKS+=ieee_test.3 significand.3 ieee_test.3 significandf.3
diff -r f8c1241a798c -r 9e706bc148af lib/libm/man/finite.3
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libm/man/finite.3     Sat Aug 06 11:01:12 2011 +0000
@@ -0,0 +1,82 @@
+.\" Copyright (c) 1985, 1991 Regents of the University of California.
+.\" All rights reserved.
+.\"
+.\" Redistribution and use in source and binary forms, with or without
+.\" modification, are permitted provided that the following conditions
+.\" are met:
+.\" 1. Redistributions of source code must retain the above copyright
+.\"    notice, this list of conditions and the following disclaimer.
+.\" 2. Redistributions in binary form must reproduce the above copyright
+.\"    notice, this list of conditions and the following disclaimer in the
+.\"    documentation and/or other materials provided with the distribution.
+.\" 3. Neither the name of the University nor the names of its contributors
+.\"    may be used to endorse or promote products derived from this software
+.\"    without specific prior written permission.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+.\" SUCH DAMAGE.
+.\"
+.\"     from: @(#)ieee.3       6.4 (Berkeley) 5/6/91
+.\"    $NetBSD: finite.3,v 1.1 2011/08/06 11:01:13 jruoho Exp $
+.\"
+.Dd July 28, 2011
+.Dt FINITE 3
+.Os
+.Sh NAME
+.Nm finite ,
+.Nm finitef
+.Nd tests for finite values
+.Sh LIBRARY
+.Lb libm
+.Sh SYNOPSIS
+.In math.h
+.Ft int
+.Fn finite "double x"
+.Ft int
+.Fn finitef "float x"
+.Sh DESCRIPTION
+The
+.Fn finite
+function returns the value 1 when
+.Bd -ragged -offset indent
+\-\*(If \*(Lt
+.Fa x
+\*(Lt +\*(If.
+.Ed
+.Pp
+Otherwise a zero is returned
+(that is,
+.Pf \*(Ba Ns Fa x Ns \*(Ba
+= \*(If or
+.Fa x
+is \*(Na).
+.Sh SEE ALSO
+.Xr math 3 ,
+.Xr isfinite 3
+.Sh STANDARDS
+The described functions conform to
+.St -ieee754 .
+Note that unlike
+.Xr isfinite 3 ,
+neither function is present in the
+.Dv ISO
+C-language standards or in the
+.Dv IEEE
+.Dv POSIX
+standards.
+.Sh HISTORY
+The
+.Nm finite
+and
+.Fn finitef
+functions first appeared in
+.Bx 4.3 .
diff -r f8c1241a798c -r 9e706bc148af lib/libm/man/ieee.3
--- a/lib/libm/man/ieee.3       Sat Aug 06 10:51:26 2011 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,71 +0,0 @@
-.\" Copyright (c) 1985, 1991 Regents of the University of California.
-.\" All rights reserved.
-.\"
-.\" Redistribution and use in source and binary forms, with or without
-.\" modification, are permitted provided that the following conditions
-.\" are met:
-.\" 1. Redistributions of source code must retain the above copyright
-.\"    notice, this list of conditions and the following disclaimer.
-.\" 2. Redistributions in binary form must reproduce the above copyright
-.\"    notice, this list of conditions and the following disclaimer in the
-.\"    documentation and/or other materials provided with the distribution.
-.\" 3. Neither the name of the University nor the names of its contributors
-.\"    may be used to endorse or promote products derived from this software
-.\"    without specific prior written permission.
-.\"
-.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
-.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
-.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
-.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
-.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
-.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
-.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
-.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
-.\" SUCH DAMAGE.
-.\"
-.\"     from: @(#)ieee.3       6.4 (Berkeley) 5/6/91
-.\"    $NetBSD: ieee.3,v 1.28 2011/08/06 10:51:26 jruoho Exp $
-.\"
-.Dd July 28, 2011
-.Dt IEEE 3
-.Os
-.Sh NAME
-.Nm finite ,
-.Nm finitef ,
-.Nd functions for IEEE arithmetic
-.Sh LIBRARY
-.Lb libm
-.Sh SYNOPSIS
-.In math.h
-.Ft int
-.Fn finite "double x"
-.Ft int
-.Fn finitef "float x"
-.Sh DESCRIPTION
-These functions are required or recommended by
-.St -ieee754 .
-.Pp
-.Fn finite
-returns the value 1 just when
-\-\*(If \*(Lt
-.Fa x
-\*(Lt +\*(If;
-otherwise a
-zero is returned
-(when
-.Pf \*(Ba Ns Fa x Ns \*(Ba
-= \*(If or
-.Fa x
-is \*(Na).
-.Sh SEE ALSO
-.Xr math 3 ,
-.Xr nextafter 3
-.Sh STANDARDS
-.St -ieee754
-.Sh HISTORY
-The
-.Nm ieee
-functions appeared in
-.Bx 4.3 .



Home | Main Index | Thread Index | Old Index