mpz reuse test takes too much time

Torbjörn Granlund tg at
Wed Sep 28 15:03:39 UTC 2016

nisse at (Niels Möller) writes:

  tg at (Torbjörn Granlund) writes:
  > Please check that reuse.c whacks gcdext appropriately.
  It doesn't check the cases where both input operands overlap some output
  operands, e.g.,
  	  mpz_gcdext (res1, res2, res3, res1, res3);
  	  mpz_gcdext (res1, res2, res3, res2, res2);
  Should it do that, or is it enough that the reuse tests overlap one
  operand at a time? Doing all combinations everywhere does blow up the
  number of tests a bit.
Let's make the test slower as a reaction to Vincent's complaint!  :-)

Seriously, I think we should exercise all combinations.

Please encrypt, key id 0xC8601622

More information about the gmp-bugs mailing list