Source-Changes-HG archive

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

[src/netbsd-3]: src Pull up following revision(s) (requested by drochner in t...



details:   https://anonhg.NetBSD.org/src/rev/186ee66e3d9d
branches:  netbsd-3
changeset: 577895:186ee66e3d9d
user:      riz <riz%NetBSD.org@localhost>
date:      Fri Mar 24 22:28:37 2006 +0000

description:
Pull up following revision(s) (requested by drochner in ticket #1213):
        lib/libm/man/lrint.3: revision 1.1
        distrib/sets/lists/comp/mi: revision 1.815
        lib/libm/Makefile: revision 1.69
Add man page for l{,l}rint{,f}(3), very loosely based on the FreeBSD one.
Requested by martin@
Reviewed by drochner@

diffstat:

 distrib/sets/lists/comp/mi |   10 +++-
 lib/libm/Makefile          |    6 +-
 lib/libm/man/lrint.3       |  103 +++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 116 insertions(+), 3 deletions(-)

diffs (179 lines):

diff -r 0395e5401e23 -r 186ee66e3d9d distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi        Fri Mar 24 21:58:55 2006 +0000
+++ b/distrib/sets/lists/comp/mi        Fri Mar 24 22:28:37 2006 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: mi,v 1.770.2.8 2005/09/08 19:15:43 tron Exp $
+#      $NetBSD: mi,v 1.770.2.9 2006/03/24 22:28:38 riz Exp $
 ./etc/mtree/set.comp                           comp-sys-root
 ./usr/bin/addr2line                            comp-debug-bin          bfd
 ./usr/bin/ar                                   comp-util-bin           bfd
@@ -3695,6 +3695,8 @@
 ./usr/share/man/cat3/list_remove.0             comp-obsolete           obsolete
 ./usr/share/man/cat3/llabs.0                   comp-c-catman           .cat
 ./usr/share/man/cat3/lldiv.0                   comp-c-catman           .cat
+./usr/share/man/cat3/llrint.0                  comp-c-catman           .cat
+./usr/share/man/cat3/llrintf.0                 comp-c-catman           .cat
 ./usr/share/man/cat3/localeconv.0              comp-c-catman           .cat
 ./usr/share/man/cat3/localtime.0               comp-c-catman           .cat
 ./usr/share/man/cat3/localtime_r.0             comp-c-catman           .cat
@@ -3726,6 +3728,8 @@
 ./usr/share/man/cat3/longjmperror.0            comp-c-catman           .cat
 ./usr/share/man/cat3/longname.0                        comp-c-catman           .cat
 ./usr/share/man/cat3/lrand48.0                 comp-c-catman           .cat
+./usr/share/man/cat3/lrint.0                   comp-c-catman           .cat
+./usr/share/man/cat3/lrintf.0                  comp-c-catman           .cat
 ./usr/share/man/cat3/lsearch.0                 comp-c-catman           .cat
 ./usr/share/man/cat3/magic_buffer.0            comp-c-catman           .cat
 ./usr/share/man/cat3/magic_check.0             comp-c-catman           .cat
@@ -7566,6 +7570,8 @@
 ./usr/share/man/man3/list_remove.3             comp-obsolete           obsolete
 ./usr/share/man/man3/llabs.3                   comp-c-man              .man
 ./usr/share/man/man3/lldiv.3                   comp-c-man              .man
+./usr/share/man/man3/llrint.3                  comp-c-man              .man
+./usr/share/man/man3/llrintf.3                 comp-c-man              .man
 ./usr/share/man/man3/localeconv.3              comp-c-man              .man
 ./usr/share/man/man3/localtime.3               comp-c-man              .man
 ./usr/share/man/man3/localtime_r.3             comp-c-man              .man
@@ -7597,6 +7603,8 @@
 ./usr/share/man/man3/longjmperror.3            comp-c-man              .man
 ./usr/share/man/man3/longname.3                        comp-c-man              .man
 ./usr/share/man/man3/lrand48.3                 comp-c-man              .man
+./usr/share/man/man3/lrint.3                   comp-c-man              .man
+./usr/share/man/man3/lrintf.3                  comp-c-man              .man
 ./usr/share/man/man3/lsearch.3                 comp-c-man              .man
 ./usr/share/man/man3/magic_buffer.3            comp-c-man              .man
 ./usr/share/man/man3/magic_check.3             comp-c-man              .man
diff -r 0395e5401e23 -r 186ee66e3d9d lib/libm/Makefile
--- a/lib/libm/Makefile Fri Mar 24 21:58:55 2006 +0000
+++ b/lib/libm/Makefile Fri Mar 24 22:28:37 2006 +0000
@@ -1,4 +1,4 @@
-#  $NetBSD: Makefile,v 1.65 2004/11/13 20:29:47 jmmv Exp $
+#  $NetBSD: Makefile,v 1.65.2.1 2006/03/24 22:28:38 riz Exp $
 #
 #  @(#)Makefile 5.1beta 93/09/24
 #
@@ -172,7 +172,8 @@
 
 MAN+=  acos.3 acosh.3 asin.3 asinh.3 atan.3 atan2.3 atanh.3 ceil.3 \
        cos.3 cosh.3 erf.3 exp.3 fabs.3 floor.3 fmod.3 hypot.3 ieee.3 \
-       ieee_test.3 isinff.3 j0.3 lgamma.3 math.3 rint.3 round.3 sin.3 sinh.3 \
+       ieee_test.3 isinff.3 j0.3 lgamma.3 lrint.3 \
+       math.3 rint.3 round.3 sin.3 sinh.3 \
        sqrt.3 tan.3 tanh.3
 
 MLINKS+=acos.3 acosf.3
@@ -205,6 +206,7 @@
 MLINKS+=lgamma.3 lgammaf.3 lgamma.3 lgamma_r.3 lgamma.3 lgammaf_r.3 \
        lgamma.3 gamma.3 lgamma.3 gammaf.3 lgamma.3 gamma_r.3 \
        lgamma.3 gammaf_r.3
+MLINKS+=lrint.3 lrintf.3 lrint.3 llrint.3 lrint.3 llrintf.3
 MLINKS+=rint.3 rintf.3
 MLINKS+=sin.3 sinf.3
 MLINKS+=sinf.3 sinhf.3
diff -r 0395e5401e23 -r 186ee66e3d9d lib/libm/man/lrint.3
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lib/libm/man/lrint.3      Fri Mar 24 22:28:37 2006 +0000
@@ -0,0 +1,103 @@
+.\" $NetBSD: lrint.3,v 1.1.2.2 2006/03/24 22:28:37 riz Exp $
+.\"
+.\" Copyright (c) 2005 David Schultz <das%FreeBSD.org@localhost>
+.\" 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.
+.\"
+.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR 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 AUTHOR 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.
+.\"
+.\" $FreeBSD: /repoman/r/ncvs/src/lib/msun/man/lrint.3,v 1.2.2.2 2005/03/01 16:18:39 brueffer Exp $
+.\"
+.Dd January 11, 2005
+.Dt LRINT 3
+.Os
+.Sh NAME
+.Nm llrint ,
+.Nm llrintf ,
+.Nm lrint ,
+.Nm lrintf
+.Nd convert to integer
+.Sh LIBRARY
+.Lb libm
+.Sh SYNOPSIS
+.In math.h
+.Ft long long
+.Fn llrint "double x"
+.Ft long long
+.Fn llrintf "float x"
+.Ft long
+.Fn lrint "double x"
+.Ft long
+.Fn lrintf "float x"
+.Sh DESCRIPTION
+The
+.Fn lrint
+function returns the integer nearest to its argument
+.Fa x
+according to the current rounding mode.
+.Pp
+The
+.Fn llrint ,
+.Fn llrintf ,
+and
+.Fn lrintf
+functions differ from
+.Fn lrint
+only in their input and output types.
+.Sh RETURN VALUES
+The
+.Nm llrint ,
+.Nm llrintf ,
+.Nm lrint ,
+and
+.Nm lrintf
+functions return the integer nearest to their argument
+.Fa x
+according to the current rounding mode.
+If the rounded result is too large to be represented as a
+.Vt long long
+or
+.Vt long
+value, respectively,
+.\" an invalid exception is raised and
+the return value is undefined.
+.\" Otherwise, if
+.\" .Fa x
+.\" is not an integer,
+.\" .Fn lrint
+.\" raises an inexact exception.
+.\" If
+.\" .Fa x
+.\" is too large, a range error may occur.
+.Sh SEE ALSO
+.\" .Xr lround 3 ,
+.Xr math 3 ,
+.Xr rint 3 ,
+.Xr round 3
+.Sh STANDARDS
+The
+.Fn llrint ,
+.Fn llrintf ,
+.Fn lrint ,
+and
+.Fn lrintf
+functions conform to
+.St -isoC-99 .



Home | Main Index | Thread Index | Old Index