On Sun, Apr 03, 2011 at 05:09:55PM +0200, Frank Wille wrote: > Did somebody already try to implement it? If not, I would suggest the > following code for src/sys/lib/libkern: > > [...] > > Any comments? Then please speak now. :) Just a footnote: wouldn't <sys/bitops.h> be a better place logically? - Jukka.