Module Name: src
Committed By: joerg
Date: Wed Nov 13 22:09:55 UTC 2013
Modified Files:
src/distrib/sets/lists/comp: mi
src/lib/libm: Makefile
src/lib/libm/man: trunc.3
Log Message:
truncl(3)
To generate a diff of this commit:
cvs rdiff -u -r1.1857 -r1.1858 src/distrib/sets/lists/comp/mi
cvs rdiff -u -r1.148 -r1.149 src/lib/libm/Makefile
cvs rdiff -u -r1.5 -r1.6 src/lib/libm/man/trunc.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.1857 src/distrib/sets/lists/comp/mi:1.1858
--- src/distrib/sets/lists/comp/mi:1.1857 Tue Nov 12 16:48:39 2013
+++ src/distrib/sets/lists/comp/mi Wed Nov 13 22:09:55 2013
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1857 2013/11/12 16:48:39 joerg Exp $
+# $NetBSD: mi,v 1.1858 2013/11/13 22:09:55 joerg Exp $
#
# Note: don't delete entries from here - mark them as "obsolete" instead.
#
@@ -9058,6 +9058,7 @@
./usr/share/man/cat3/tree.0 comp-c-catman .cat
./usr/share/man/cat3/trunc.0 comp-c-catman .cat
./usr/share/man/cat3/truncf.0 comp-c-catman .cat
+./usr/share/man/cat3/truncl.0 comp-c-catman .cat
./usr/share/man/cat3/tsearch.0 comp-c-catman .cat
./usr/share/man/cat3/ttyaction.0 comp-c-catman .cat
./usr/share/man/cat3/ttylock.0 comp-c-catman .cat
@@ -15536,6 +15537,7 @@
./usr/share/man/html3/tree.html comp-c-htmlman html
./usr/share/man/html3/trunc.html comp-c-htmlman html
./usr/share/man/html3/truncf.html comp-c-htmlman html
+./usr/share/man/html3/truncl.html comp-c-htmlman html
./usr/share/man/html3/tsearch.html comp-c-htmlman html
./usr/share/man/html3/ttyaction.html comp-c-htmlman html
./usr/share/man/html3/ttylock.html comp-c-htmlman html
@@ -22082,6 +22084,7 @@
./usr/share/man/man3/tree.3 comp-c-man .man
./usr/share/man/man3/trunc.3 comp-c-man .man
./usr/share/man/man3/truncf.3 comp-c-man .man
+./usr/share/man/man3/truncl.3 comp-c-man .man
./usr/share/man/man3/tsearch.3 comp-c-man .man
./usr/share/man/man3/ttyaction.3 comp-c-man .man
./usr/share/man/man3/ttylock.3 comp-c-man .man
Index: src/lib/libm/Makefile
diff -u src/lib/libm/Makefile:1.148 src/lib/libm/Makefile:1.149
--- src/lib/libm/Makefile:1.148 Wed Nov 13 12:58:11 2013
+++ src/lib/libm/Makefile Wed Nov 13 22:09:55 2013
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.148 2013/11/13 12:58:11 joerg Exp $
+# $NetBSD: Makefile,v 1.149 2013/11/13 22:09:55 joerg Exp $
#
# @(#)Makefile 5.1beta 93/09/24
#
@@ -318,7 +318,8 @@ MLINKS+=tan.3 tanf.3
MLINKS+=tanh.3 tanhf.3
MLINKS+=round.3 roundf.3 \
round.3 roundl.3
-MLINKS+=trunc.3 truncf.3
+MLINKS+=trunc.3 truncf.3 \
+ trunc.3 truncl.3
MLINKS+=fmax.3 fmaxl.3
MLINKS+=fmax.3 fmaxf.3
MLINKS+=fmax.3 fmin.3
Index: src/lib/libm/man/trunc.3
diff -u src/lib/libm/man/trunc.3:1.5 src/lib/libm/man/trunc.3:1.6
--- src/lib/libm/man/trunc.3:1.5 Tue Apr 4 20:26:33 2006
+++ src/lib/libm/man/trunc.3 Wed Nov 13 22:09:55 2013
@@ -1,4 +1,4 @@
-.\" $NetBSD: trunc.3,v 1.5 2006/04/04 20:26:33 wiz Exp $
+.\" $NetBSD: trunc.3,v 1.6 2013/11/13 22:09:55 joerg Exp $
.\"
.\" Copyright (c) 2004, 2005 David Schultz <[email protected]>
.\" All rights reserved.
@@ -26,13 +26,13 @@
.\"
.\" $FreeBSD: src/lib/msun/man/trunc.3,v 1.3 2005/06/15 19:04:04 ru Exp $
.\"
-.Dd March 31, 2006
+.Dd November 13, 2013
.Dt TRUNC 3
.Os
.Sh NAME
.Nm trunc ,
.Nm truncf
-.\" .Nm truncl
+.Nm truncl
.Nd "nearest integral value with magnitude less than or equal to |x|"
.Sh LIBRARY
.Lb libm
@@ -42,22 +42,22 @@
.Fn trunc "double x"
.Ft float
.Fn truncf "float x"
-.\" .Ft "long double"
-.\" .Fn truncl "long double x"
+.Ft "long double"
+.Fn truncl "long double x"
.Sh DESCRIPTION
The
-.Fn trunc
+.Fn trunc ,
+.Fn truncf ,
and
-.Fn truncf
-.\" .Fn truncl
+.Fn truncl
functions return the nearest integral value with magnitude less than
or equal to
.Pf | Fa x Ns | .
They are equivalent to
-.Fn rint
+.Fn rint ,
+.Fn rintf ,
and
-.Fn rintf
-.\" .Fn rintl
+.Fn rintl
respectively, in the
.Dv FP_RZ
rounding mode.
@@ -71,9 +71,9 @@ rounding mode.
.Xr round 3
.Sh STANDARDS
The
-.Fn trunc
+.Fn trunc ,
+.Fn truncf ,
and
-.Fn truncf
-.\" .Fn truncl
+.Fn truncl
functions conform to
.St -isoC-99 .