Integers as bit arrays

Torbjorn Granlund tege@swox.com
11 Jul 2003 23:49:23 +0200


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