Method Gmp.mpz()->hamdist() Method hamdist int hamdist(int x) Description Calculates the hamming distance between this number and x.