LOGCOUNT

number of ``on'' bits in a two's complement number
Major Section:  PROGRAMMING

(Logcount x) is the number of ``on'' bits in the two's complement representation of x.

(Logcount x) has a guard of (integerp x).

Logcount is a Common Lisp function. See any Common Lisp documentation for more information.