Extracted from Pike v7.6 release 13 at 2006-10-17.
pike.ida.liu.se
[Top]
Gmp
Gmp.mpz

Method Gmp.mpz()->popcount()


Method popcount

int popcount()

Description

For values >= 0, returns the population count (the number of set bits). For negative values (who have an infinite number of leading ones in a binary representation), -1 is returned.