http://benji3up2kxewkqfcq7buxk2xd6zwy3zggnurkrm3l4cvwy2iipvyyad.onion/mirrors/gmpdoc/Integer-Logic-and-Bit-Fiddling.html
Function: mp_bitcnt_t mpz_popcount (const mpz_t op ) ¶ If op >=0 , return the population count of op , which is the
number of 1 bits in the binary representation. If op <0 , the
number of 1s is infinite, and the return value is the largest possible mp_bitcnt_t . Function: mp_bitcnt_t mpz_hamdist (const mpz_t op1 , const mpz_t op2 ) ¶ If op1 and op2 are both >=0 or both <0 , return the
hamming distance between the two operands, which is the number of bit...