Subject: typeof (Re: CVS commit: src)
To: None <>
From: YAMAMOTO Takashi <>
List: tech-kern
Date: 09/01/2006 09:01:06
> 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.

is it ok to use typeof here?