Integers as bit arrays

Torbjorn Granlund
11 Jul 2003 23:49:23 +0200

Brian Hurt <> 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.