Function LOGCOUNT

The term {tt (logcount $tau$)} denotes the number of {it on} bits in the object denoted by $tau$. If the denotation of $tau$ is positive, then the one bits are counted; otherwise, the zero bits in the twos-complement representation are counted.
Arity: 2