Subject: CVS commit: src
To: None <source-changes@NetBSD.org>
From: David Young <dyoung@netbsd.org>
List: source-changes
Date: 08/31/2006 19:24:38
Module Name:	src
Committed By:	dyoung
Date:		Thu Aug 31 19:24:38 UTC 2006

Modified Files:
	src/distrib/sets/lists/comp: mi
	src/share/man/man3: Makefile
	src/sys/arch/i386/pci: geodereg.h geodewdg.c
	src/sys/dev/ic: atw.c atwreg.h atwvar.h max2820reg.h rtw.c rtwphy.c
	    rtwphyio.c rtwreg.h sa2400reg.h si4136reg.h
	src/sys/lib/libkern: libkern.h
	src/sys/sys: cdefs.h
Added Files:
	src/share/man/man3: bits.3

Log Message:
Per discussion on tech-kern and tech-userlevel, move the bit-twiddling
macros, __BIT, __BITS, SHIFTIN, SHIFTOUT, and __arraycount() from
lib/libkern/libkern.h to sys/cdefs.h.  Add a __-prefix to SHIFTIN
and SHIFTOUT, and add a manual page for the bit-twiddling macros,
bits(3).

Make the __BIT and __BITS macros "widthless," as best I can, by
changing their type to uintmax_t from uint32_t.  XXX The manual
page lags this change by a bit.

Define __PRIxBIT and __PRIxBITS printf(3) format strings.


To generate a diff of this commit:
cvs rdiff -r1.917 -r1.918 src/distrib/sets/lists/comp/mi
cvs rdiff -r1.28 -r1.29 src/share/man/man3/Makefile
cvs rdiff -r0 -r1.1 src/share/man/man3/bits.3
cvs rdiff -r1.7 -r1.8 src/sys/arch/i386/pci/geodereg.h
cvs rdiff -r1.2 -r1.3 src/sys/arch/i386/pci/geodewdg.c
cvs rdiff -r1.118 -r1.119 src/sys/dev/ic/atw.c
cvs rdiff -r1.14 -r1.15 src/sys/dev/ic/atwreg.h
cvs rdiff -r1.21 -r1.22 src/sys/dev/ic/atwvar.h
cvs rdiff -r1.6 -r1.7 src/sys/dev/ic/max2820reg.h src/sys/dev/ic/sa2400reg.h
cvs rdiff -r1.74 -r1.75 src/sys/dev/ic/rtw.c
cvs rdiff -r1.9 -r1.10 src/sys/dev/ic/rtwphy.c
cvs rdiff -r1.11 -r1.12 src/sys/dev/ic/rtwphyio.c
cvs rdiff -r1.19 -r1.20 src/sys/dev/ic/rtwreg.h
cvs rdiff -r1.4 -r1.5 src/sys/dev/ic/si4136reg.h
cvs rdiff -r1.64 -r1.65 src/sys/lib/libkern/libkern.h
cvs rdiff -r1.60 -r1.61 src/sys/sys/cdefs.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.