Subject: Re: changes to bit-twiddling macros & __arraycount()
To: None <M.Drochner@fz-juelich.de>
From: Jason Thorpe <thorpej@shagadelic.org>
List: tech-userlevel
Date: 08/07/2006 12:41:53
On Aug 7, 2006, at 12:19 PM, Matthias Drochner wrote:

>
> dyoung@pobox.com said:
>> Per previous discussions, I am moving the bit-twiddling macros [1]  
>> and
>> __arraycount from lib/libkern/libkern.h to sys/cdefs.h
>
> Sorry, I missed that.
>
>> I have
>> added a __-prefix to SHIFTIN & SHIFTOUT
>
> What's the objective? I could imagine that you want to use it in  
> userlevel
> programs too, but then these would be highly unportable. So an extra
> header and names without "__" prefix would be more reasonable.

If they're in <sys/cdefs.h>, they need to be out of the user's  
namespace.

-- thorpej