Function bitCount( i )
- Description:
-
Returns the number of set bits in the 64-bit two's complement
representation of the integer argument.
- Parameters:
-
- i (long integer)
- integer value
- Return Value (integer):
- number of "1" bits in the binary representation of
i
- Examples:
bitCount(64) = 1
bitCount(3) = 2
- Signature:
- int bitCount(long)