Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src truncl(3)
details: https://anonhg.NetBSD.org/src/rev/084d6368f306
branches: trunk
changeset: 791340:084d6368f306
user: joerg <joerg%NetBSD.org@localhost>
date: Wed Nov 13 22:09:55 2013 +0000
description:
truncl(3)
diffstat:
distrib/sets/lists/comp/mi | 5 ++++-
lib/libm/Makefile | 5 +++--
lib/libm/man/trunc.3 | 28 ++++++++++++++--------------
3 files changed, 21 insertions(+), 17 deletions(-)
diffs (121 lines):
diff -r 38154a5d7338 -r 084d6368f306 distrib/sets/lists/comp/mi
--- a/distrib/sets/lists/comp/mi Wed Nov 13 21:46:22 2013 +0000
+++ b/distrib/sets/lists/comp/mi Wed Nov 13 22:09:55 2013 +0000
@@ -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
diff -r 38154a5d7338 -r 084d6368f306 lib/libm/Makefile
--- a/lib/libm/Makefile Wed Nov 13 21:46:22 2013 +0000
+++ b/lib/libm/Makefile Wed Nov 13 22:09:55 2013 +0000
@@ -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+=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
diff -r 38154a5d7338 -r 084d6368f306 lib/libm/man/trunc.3
--- a/lib/libm/man/trunc.3 Wed Nov 13 21:46:22 2013 +0000
+++ b/lib/libm/man/trunc.3 Wed Nov 13 22:09:55 2013 +0000
@@ -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 <das%FreeBSD.org@localhost>
.\" 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 @@
.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 .
Home |
Main Index |
Thread Index |
Old Index