Module Name: src Committed By: he Date: Sun Sep 13 09:46:30 UTC 2015
Modified Files: src/distrib/sets/lists/comp: mi src/lib/libm: Makefile src/lib/libm/man: rint.3 Log Message: Add entries for rintl(3) and the nearbyint functions, and make manual page links to the new functions. Bump manual page date. To generate a diff of this commit: cvs rdiff -u -r1.1985 -r1.1986 src/distrib/sets/lists/comp/mi cvs rdiff -u -r1.168 -r1.169 src/lib/libm/Makefile cvs rdiff -u -r1.13 -r1.14 src/lib/libm/man/rint.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/sets/lists/comp/mi diff -u src/distrib/sets/lists/comp/mi:1.1985 src/distrib/sets/lists/comp/mi:1.1986 --- src/distrib/sets/lists/comp/mi:1.1985 Sun Aug 23 18:28:40 2015 +++ src/distrib/sets/lists/comp/mi Sun Sep 13 09:46:30 2015 @@ -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 Index: src/lib/libm/Makefile diff -u src/lib/libm/Makefile:1.168 src/lib/libm/Makefile:1.169 --- src/lib/libm/Makefile:1.168 Sat Dec 27 16:54:02 2014 +++ src/lib/libm/Makefile Sun Sep 13 09:46:30 2015 @@ -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 @@ ARCH_SRCS = e_acos.S e_asin.S e_atanh.S .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+=lrint.3 lrintf.3 lrint.3 llrint. 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 Index: src/lib/libm/man/rint.3 diff -u src/lib/libm/man/rint.3:1.13 src/lib/libm/man/rint.3:1.14 --- src/lib/libm/man/rint.3:1.13 Tue Sep 13 07:11:43 2011 +++ src/lib/libm/man/rint.3 Sun Sep 13 09:46:30 2015 @@ -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