Re: [PATCH 07/10] bitops: Provide compile time HWEIGHT{8,16,32,64}

From: H. Peter Anvin
Date: Fri Jan 29 2010 - 19:13:49 EST


On 01/29/2010 03:05 AM, Peter Zijlstra wrote:
> On Fri, 2010-01-29 at 11:32 +0100, John Kacur wrote:
>>
>> I like it. Maybe provide a comment that this provides the Hamming weight, it
>> took me a second to realize what this was.
>
> its called _H_weight for crying out loud.
>

True... although in computer architecture, when talking about bits, I
think you find that the term population count (popcount) is more readily
recognized.

-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/