Messages in this thread | | | Date | Fri, 29 Jan 2010 16:09:45 -0800 | From | "H. Peter Anvin" <> | Subject | Re: [PATCH 07/10] bitops: Provide compile time HWEIGHT{8,16,32,64} |
| |
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
| |