Mon Nov 7 03:12:54 2016 UTC ()
These have been able to handle uintmax-width masks since creation.

XXX pullup-6
XXX pullup-7


(riastradh)
diff -r1.16 -r1.17 src/share/man/man3/bits.3

cvs diff -r1.16 -r1.17 src/share/man/man3/bits.3 (expand / switch to unified diff)

--- src/share/man/man3/bits.3 2014/03/18 18:20:39 1.16
+++ src/share/man/man3/bits.3 2016/11/07 03:12:54 1.17
@@ -1,41 +1,41 @@ @@ -1,41 +1,41 @@
1.\" $NetBSD: bits.3,v 1.16 2014/03/18 18:20:39 riastradh Exp $ 1.\" $NetBSD: bits.3,v 1.17 2016/11/07 03:12:54 riastradh Exp $
2.\" 2.\"
3.\" Copyright (c) 2006, 2010 David Young. All rights reserved. 3.\" Copyright (c) 2006, 2010 David Young. All rights reserved.
4.\" 4.\"
5.\" Redistribution and use in source and binary forms, with or 5.\" Redistribution and use in source and binary forms, with or
6.\" without modification, are permitted provided that the following 6.\" without modification, are permitted provided that the following
7.\" conditions are met: 7.\" conditions are met:
8.\" 1. Redistributions of source code must retain the above copyright 8.\" 1. Redistributions of source code must retain the above copyright
9.\" notice, this list of conditions and the following disclaimer. 9.\" notice, this list of conditions and the following disclaimer.
10.\" 2. Redistributions in binary form must reproduce the above 10.\" 2. Redistributions in binary form must reproduce the above
11.\" copyright notice, this list of conditions and the following 11.\" copyright notice, this list of conditions and the following
12.\" disclaimer in the documentation and/or other materials 12.\" disclaimer in the documentation and/or other materials
13.\" provided with the distribution. 13.\" provided with the distribution.
14.\" 14.\"
15.\" THIS SOFTWARE IS PROVIDED BY DAVID YOUNG ``AS IS'' AND ANY 15.\" THIS SOFTWARE IS PROVIDED BY DAVID YOUNG ``AS IS'' AND ANY
16.\" EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 16.\" EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
17.\" THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 17.\" THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
18.\" PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID 18.\" PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID
19.\" YOUNG BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 19.\" YOUNG BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
20.\" EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED 20.\" EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
21.\" TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21.\" TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 22.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 23.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 25.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26.\" POSSIBILITY OF SUCH DAMAGE. 26.\" POSSIBILITY OF SUCH DAMAGE.
27.\" 27.\"
28.Dd October 17, 2012 28.Dd November 6, 2016
29.Dt BITS 3 29.Dt BITS 3
30.Os 30.Os
31.Sh NAME 31.Sh NAME
32.Nm __BIT , 32.Nm __BIT ,
33.Nm __BITS , 33.Nm __BITS ,
34.Nm __SHIFTIN , 34.Nm __SHIFTIN ,
35.Nm __SHIFTOUT , 35.Nm __SHIFTOUT ,
36.Nm __SHIFTOUT_MASK 36.Nm __SHIFTOUT_MASK
37.Nd "macros for preparing bitmasks and operating on bit fields" 37.Nd "macros for preparing bitmasks and operating on bit fields"
38.Sh SYNOPSIS 38.Sh SYNOPSIS
39.In sys/param.h 39.In sys/param.h
40.In sys/cdefs.h 40.In sys/cdefs.h
41.Ft uintmax_t 41.Ft uintmax_t
@@ -136,18 +136,13 @@ with different names and implementation. @@ -136,18 +136,13 @@ with different names and implementation.
136In their current form these macros appeared in 136In their current form these macros appeared in
137.Nx 4.0 . 137.Nx 4.0 .
138.Sh AUTHORS 138.Sh AUTHORS
139The 139The
140.Nm bits 140.Nm bits
141macros were written by 141macros were written by
142.An David Young Aq Mt dyoung@NetBSD.org . 142.An David Young Aq Mt dyoung@NetBSD.org .
143.An Matt Thomas Aq Mt matt@NetBSD.org 143.An Matt Thomas Aq Mt matt@NetBSD.org
144suggested important improvements to the implementation, and 144suggested important improvements to the implementation, and
145contributed the macro names 145contributed the macro names
146.Fn SHIFTIN 146.Fn SHIFTIN
147and 147and
148.Fn SHIFTOUT . 148.Fn SHIFTOUT .
149.Sh BUGS 
150.Fn __BIT 
151and 
152.Fn __BITS 
153can only express 32-bit bitmasks.