« Return to Thread: new module 'popcount'

Re: new module 'popcount'

by James Youngman-5 :: Rate this Message:

Reply to Author | View in Thread

On 7/23/07, Bruno Haible <bruno@...> wrote:
> 'popcount' is not a particularly good name. When I first stumbled on a
> function of this name in the sources of GNU gettext, it took me some time
> to understand what it meant.
>
> The ANSI Common Lisp name for this function is 'logcount', where the
> prefix 'log' means a "logical" interpretation of integers. This is not
> mainstream understandable either.

hamming_weight would correspond to the formal definition of the
quantity, I think.

James.


 « Return to Thread: new module 'popcount'