logcount

[procedure] logcount n

SLIB, Gauche, Guile: returns the number of 1 bits (if n is positive) or 0 bits (if n is negative) of an integer n.

R6RS offers bitwise-bit-count which is identical for positive integers but different for negative.