Re: mpz_combit

2012-10-30 Thread Niels Möller
ni...@lysator.liu.se (Niels Möller) writes: I've tried rewriting mpz_combit. Two reasons: 1. To reduce overhead int he common case. 2. I just realized that the common case, for both positive and negative numbers, is to complement the corresponding bit of the absolute value. Any comments on

Re: mpz_combit

2012-10-30 Thread Torbjorn Granlund
ni...@lysator.liu.se (Niels Möller) writes: ni...@lysator.liu.se (Niels Möller) writes: I've tried rewriting mpz_combit. Two reasons: 1. To reduce overhead int he common case. 2. I just realized that the common case, for both positive and negative numbers, is to complement the