Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src Add entries for rintl(3) and the nearbyint functions, and
details: https://anonhg.NetBSD.org/src/rev/12a9530b6f35
branches: trunk
changeset: 340567:12a9530b6f35
user: he <he%NetBSD.org@localhost>
date: Sun Sep 13 09:46:30 2015 +0000
description:
Add entries for rintl(3) and the nearbyint functions, and
make manual page links to the new functions.
Bump manual page date.
diffstat:
distrib/sets/lists/comp/mi | 14 +++++++++++++-
lib/libm/Makefile | 11 ++++++++---
lib/libm/man/rint.3 | 41 ++++++++++++++++++++++++++++++++++-------
3 files changed, 55 insertions(+), 11 deletions(-)
diffs (169 lines):
diff -r 64bad8a11a6a -r 12a9530b6f35 distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi Sun Sep 13 09:21:51 2015 +0000
+++ b/distrib/sets/lists/comp/mi Sun Sep 13 09:46:30 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1985 2015/08/23 18:28:40 mrg Exp $
+# $NetBSD: mi,v 1.1986 2015/09/13 09:46:30 he Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@@ -7702,6 +7702,9 @@
./usr/share/man/cat3/nc_perror.0 comp-c-catman .cat
./usr/share/man/cat3/nc_sperror.0 comp-c-catman .cat
./usr/share/man/cat3/ndbm.0 comp-c-catman .cat
+./usr/share/man/cat3/nearbyint.0 comp-c-catman .cat
+./usr/share/man/cat3/nearbyintf.0 comp-c-catman .cat
+./usr/share/man/cat3/nearbyintl.0 comp-c-catman .cat
./usr/share/man/cat3/network.0 comp-c-catman .cat
./usr/share/man/cat3/new_field.0 comp-c-catman .cat
./usr/share/man/cat3/new_fieldtype.0 comp-c-catman .cat
@@ -8435,6 +8438,7 @@
./usr/share/man/cat3/rindex.0 comp-c-catman .cat
./usr/share/man/cat3/rint.0 comp-c-catman .cat
./usr/share/man/cat3/rintf.0 comp-c-catman .cat
+./usr/share/man/cat3/rintl.0 comp-c-catman .cat
./usr/share/man/cat3/ripemd.0 comp-obsolete obsolete
./usr/share/man/cat3/rmd160.0 comp-c-catman .cat
./usr/share/man/cat3/rmtops.0 comp-c-catman .cat
@@ -14604,6 +14608,9 @@
./usr/share/man/html3/nc_perror.html comp-c-htmlman html
./usr/share/man/html3/nc_sperror.html comp-c-htmlman html
./usr/share/man/html3/ndbm.html comp-c-htmlman html
+./usr/share/man/html3/nearbyint.html comp-c-htmlman html
+./usr/share/man/html3/nearbyintf.html comp-c-htmlman html
+./usr/share/man/html3/nearbyintl.html comp-c-htmlman html
./usr/share/man/html3/network.html comp-c-htmlman html
./usr/share/man/html3/new_field.html comp-c-htmlman html
./usr/share/man/html3/new_fieldtype.html comp-c-htmlman html
@@ -15329,6 +15336,7 @@
./usr/share/man/html3/rindex.html comp-c-htmlman html
./usr/share/man/html3/rint.html comp-c-htmlman html
./usr/share/man/html3/rintf.html comp-c-htmlman html
+./usr/share/man/html3/rintl.html comp-c-htmlman html
./usr/share/man/html3/rmd160.html comp-c-htmlman html
./usr/share/man/html3/rmtops.html comp-c-htmlman html
./usr/share/man/html3/round.html comp-c-htmlman html
@@ -21489,6 +21497,9 @@
./usr/share/man/man3/nc_perror.3 comp-c-man .man
./usr/share/man/man3/nc_sperror.3 comp-c-man .man
./usr/share/man/man3/ndbm.3 comp-c-man .man
+./usr/share/man/man3/nearbyint.3 comp-c-man .man
+./usr/share/man/man3/nearbyintf.3 comp-c-man .man
+./usr/share/man/man3/nearbyintl.3 comp-c-man .man
./usr/share/man/man3/network.3 comp-c-man .man
./usr/share/man/man3/new_field.3 comp-c-man .man
./usr/share/man/man3/new_fieldtype.3 comp-c-man .man
@@ -22222,6 +22233,7 @@
./usr/share/man/man3/rindex.3 comp-c-man .man
./usr/share/man/man3/rint.3 comp-c-man .man
./usr/share/man/man3/rintf.3 comp-c-man .man
+./usr/share/man/man3/rintl.3 comp-c-man .man
./usr/share/man/man3/ripemd.3 comp-obsolete obsolete
./usr/share/man/man3/rmd160.3 comp-c-man .man
./usr/share/man/man3/rmtops.3 comp-c-man .man
diff -r 64bad8a11a6a -r 12a9530b6f35 lib/libm/Makefile
--- a/lib/libm/Makefile Sun Sep 13 09:21:51 2015 +0000
+++ b/lib/libm/Makefile Sun Sep 13 09:46:30 2015 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.168 2014/12/27 16:54:02 martin Exp $
+# $NetBSD: Makefile,v 1.169 2015/09/13 09:46:30 he Exp $
#
# @(#)Makefile 5.1beta 93/09/24
#
@@ -146,7 +146,8 @@
.elif (${LIBC_MACHINE_ARCH} == "vax")
.PATH: ${.CURDIR}/arch/vax
-#NOIEEE_ARCH= n_infnan.S n_argred.S n_sqrt.S
+#NOIEEE_ARCH+= s_fmax.c s_fmaxf.c s_fmaxl.c
+#NOIEEE_ARCH+= n_infnan.S n_argred.S n_sqrt.S
#ARCH_SRCS = n_atan2.S n_cabs.S n_cbrt.S n_support.S n_sincos.S n_tan.S
# XXX - ripped out due to lack of the insn polyd in the Mariah chip,
# and emulation code isn't written yet.
@@ -352,7 +353,11 @@
MLINKS+=remainder.3 remainderf.3 \
remainder.3 remquo.3 \
remainder.3 remquof.3
-MLINKS+=rint.3 rintf.3
+MLINKS+=rint.3 rintf.3 \
+ rint.3 rintl.3 \
+ rint.3 nearbyint.3 \
+ rint.3 nearbyintf.3 \
+ rint.3 nearbyintl.3
MLINKS+=scalbn.3 scalbnf.3 \
scalbn.3 scalbnl.3
MLINKS+=sin.3 sinf.3
diff -r 64bad8a11a6a -r 12a9530b6f35 lib/libm/man/rint.3
--- a/lib/libm/man/rint.3 Sun Sep 13 09:21:51 2015 +0000
+++ b/lib/libm/man/rint.3 Sun Sep 13 09:46:30 2015 +0000
@@ -26,36 +26,63 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)rint.3 5.1 (Berkeley) 5/2/91
-.\" $NetBSD: rint.3,v 1.13 2011/09/13 07:11:43 njoly Exp $
+.\" $NetBSD: rint.3,v 1.14 2015/09/13 09:46:30 he Exp $
.\"
-.Dd March 10, 1994
+.Dd September 13, 2015
.Dt RINT 3
.Os
.Sh NAME
+.Nm nearbyint ,
+.Nm nearbyintf ,
+.Nm nearbyintl ,
.Nm rint ,
-.Nm rintf
+.Nm rintf ,
+.Nm rintl
.Nd round to integral value in floating-point format
.Sh LIBRARY
.Lb libm
.Sh SYNOPSIS
.In math.h
.Ft double
+.Fn nearbyint "double x"
+.Ft float
+.Fn nearbyintf "float x"
+.Ft long double
+.Fn nearbyintl "long double x"
+.Ft double
.Fn rint "double x"
.Ft float
.Fn rintf "float x"
+.Ft long double
+.Fn rintl "long double x"
.Sh DESCRIPTION
The
-.Fn rint
-function returns the integral value (represented as a double precision number)
-nearest to
+.Fn rint ,
+.Fn rintf ,
+and
+.Fn rintl
+functions returns the integral value nearest to
.Fa x
according to the prevailing rounding mode.
+These functions raise an inexact exception when the original argument
+is not an exact integer.
+.Pp
+The
+.Fn nearbyint ,
+.Fn nearbyintf ,
+and
+.Fn nearbyintl
+functions perform the same operation, except that they do not raise
+an inexact exception.
.Sh SEE ALSO
.Xr abs 3 ,
.Xr ceil 3 ,
.Xr fabs 3 ,
+.Xr fenv 3 ,
.Xr floor 3 ,
-.Xr math 3
+.Xr lrint 3 ,
+.Xr math 3 ,
+.Xr round 3
.Sh HISTORY
A
.Fn rint
Home |
Main Index |
Thread Index |
Old Index