Re: mpz reuse test takes too much time

2017-01-01 Thread Niels Möller
ni...@lysator.liu.se (Niels Möller) writes: > In the case > > mpn_gcdext(G, S, NULL, A, B) > > with size(A) < size(B), IIRC we currently handle that by swapping > arguments, calling mpn_gcdext to compute T (even though the caller > didn't need that, and produce S with an multiplication using

Re: mpz_gcd_ext(NULL, ...)

2017-01-01 Thread Niels Möller
"Marco Bodrato" writes: > While we are looking at gcdext, I propose a small change to save an > allocation when t must be computed. Can you review it, to check if the > size assumptions are safe? Sorry, I haven't looked too closely at this code... I guess it still