Brian Hurt <bhurt@spnz.org> writes: The basic functionality I was thinking of implementing was: - get, set (to 1), clear (to 0), invert individual bits Please see mpz_setbit etc. - get, set, clear, invert ranges of bits We don't have that. - bitwise operators- and, or, xor, negation Please see mpz_and, etc. -- Torbjörn