Module Name: src Committed By: rin Date: Wed Oct 2 08:21:08 UTC 2019
Modified Files: src/distrib/sets/lists/comp: mi src/share/man/man9: Makefile roundup.9 Log Message: Describe roundup2(9) in roundup(9). Bump date. Install it also as roundup2(9). To generate a diff of this commit: cvs rdiff -u -r1.2287 -r1.2288 src/distrib/sets/lists/comp/mi cvs rdiff -u -r1.440 -r1.441 src/share/man/man9/Makefile cvs rdiff -u -r1.8 -r1.9 src/share/man/man9/roundup.9 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.2287 src/distrib/sets/lists/comp/mi:1.2288 --- src/distrib/sets/lists/comp/mi:1.2287 Tue Oct 1 16:07:14 2019 +++ src/distrib/sets/lists/comp/mi Wed Oct 2 08:21:08 2019 @@ -1,4 +1,4 @@ -# $NetBSD: mi,v 1.2287 2019/10/01 16:07:14 christos Exp $ +# $NetBSD: mi,v 1.2288 2019/10/02 08:21:08 rin Exp $ # # Note: don't delete entries from here - mark them as "obsolete" instead. ./etc/mtree/set.comp comp-sys-root @@ -11718,6 +11718,7 @@ ./usr/share/man/cat9/rootconf.0 comp-sys-catman .cat ./usr/share/man/cat9/round_page.0 comp-sys-catman .cat ./usr/share/man/cat9/rounddown.0 comp-sys-catman .cat +./usr/share/man/cat9/rounddown2.0 comp-sys-catman .cat ./usr/share/man/cat9/roundup.0 comp-sys-catman .cat ./usr/share/man/cat9/roundup2.0 comp-sys-catman .cat ./usr/share/man/cat9/rssadapt.0 comp-sys-catman .cat @@ -19623,6 +19624,7 @@ ./usr/share/man/html9/rootconf.html comp-sys-htmlman html ./usr/share/man/html9/round_page.html comp-sys-htmlman html ./usr/share/man/html9/rounddown.html comp-sys-htmlman html +./usr/share/man/html9/rounddown2.html comp-sys-htmlman html ./usr/share/man/html9/roundup.html comp-sys-htmlman html ./usr/share/man/html9/roundup2.html comp-sys-htmlman html ./usr/share/man/html9/rssadapt.html comp-sys-htmlman html @@ -27709,6 +27711,7 @@ ./usr/share/man/man9/rootconf.9 comp-sys-man .man ./usr/share/man/man9/round_page.9 comp-sys-man .man ./usr/share/man/man9/rounddown.9 comp-sys-man .man +./usr/share/man/man9/rounddown2.9 comp-sys-man .man ./usr/share/man/man9/roundup.9 comp-sys-man .man ./usr/share/man/man9/roundup2.9 comp-sys-man .man ./usr/share/man/man9/rssadapt.9 comp-sys-man .man Index: src/share/man/man9/Makefile diff -u src/share/man/man9/Makefile:1.440 src/share/man/man9/Makefile:1.441 --- src/share/man/man9/Makefile:1.440 Wed Aug 28 21:48:14 2019 +++ src/share/man/man9/Makefile Wed Oct 2 08:21:08 2019 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.440 2019/08/28 21:48:14 rmind Exp $ +# $NetBSD: Makefile,v 1.441 2019/10/02 08:21:08 rin Exp $ # Makefile for section 9 (kernel function and variable) manual pages. @@ -787,6 +787,7 @@ MLINKS+=rnd.9 rnd_attach_source.9 rnd.9 rnd.9 rnd_add_data.9 rnd.9 rnd_add_uint32.9 MLINKS+=roundup.9 howmany.9 \ roundup.9 rounddown.9 \ + roundup.9 rounddown2.9 \ roundup.9 roundup2.9 \ roundup.9 powerof2.9 MLINKS+=rssadapt.9 ieee80211_rssadapt_choose.9 \ Index: src/share/man/man9/roundup.9 diff -u src/share/man/man9/roundup.9:1.8 src/share/man/man9/roundup.9:1.9 --- src/share/man/man9/roundup.9:1.8 Wed Jun 1 11:19:19 2011 +++ src/share/man/man9/roundup.9 Wed Oct 2 08:21:08 2019 @@ -1,4 +1,4 @@ -.\" $NetBSD: roundup.9,v 1.8 2011/06/01 11:19:19 jruoho Exp $ +.\" $NetBSD: roundup.9,v 1.9 2019/10/02 08:21:08 rin Exp $ .\" .\" Copyright (c) 2010 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd June 1, 2011 +.Dd October 2, 2019 .Dt ROUNDUP 9 .Os .Sh NAME @@ -43,6 +43,8 @@ .Fn rounddown "x" "size" .Ft size .Fn roundup2 "x" "size" +.Ft size +.Fn rounddown2 "x" "size" .Ft int .Fn powerof2 "x" .Sh DESCRIPTION @@ -64,7 +66,9 @@ rounding the residual up. .Pp The .Fn roundup2 -macro also rounds up, but with the assumption that +and +.Fn rounddown2 +macros also round up and down, respectively, but with the assumption that .Fa size is a power of two. If