lkml.org 
[lkml]   [2010]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [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


    \
     
     \ /
      Last update: 2010-01-30 01:15    [W:0.021 / U:30.824 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site