Module Name: src
Committed By: jruoho
Date: Sat Aug 6 11:01:13 UTC 2011
Modified Files:
src/lib/libm: Makefile
Added Files:
src/lib/libm/man: finite.3
Removed Files:
src/lib/libm/man: ieee.3
Log Message:
Deprecate ieee(3).
To generate a diff of this commit:
cvs rdiff -u -r1.117 -r1.118 src/lib/libm/Makefile
cvs rdiff -u -r0 -r1.1 src/lib/libm/man/finite.3
cvs rdiff -u -r1.28 -r0 src/lib/libm/man/ieee.3
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.117 src/lib/libm/Makefile:1.118
--- src/lib/libm/Makefile:1.117 Sat Aug 6 10:51:26 2011
+++ src/lib/libm/Makefile Sat Aug 6 11:01:12 2011
@@ -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
Added files:
Index: src/lib/libm/man/finite.3
diff -u /dev/null src/lib/libm/man/finite.3:1.1
--- /dev/null Sat Aug 6 11:01:13 2011
+++ src/lib/libm/man/finite.3 Sat Aug 6 11:01:13 2011
@@ -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 .