Long.bitCount

Returns the number of one-bits in the two's complement binary representation of the specified {@code long} value. This function is sometimes referred to as the <i>population count</i>.

@param i the value whose bits are to be counted @return the number of one-bits in the two's complement binary representation of the specified {@code long} value.

class Long
static
int
bitCount
(
long i
)

Meta