mini-gmp mpz_gcdext Bézout coefficients do not match documentation

Niels Möller nisse at
Sun Feb 18 20:27:15 CET 2024

marco.bodrato at writes:

> The only reason why I prefer my solution is: when cmp<0, there is no need to compute
> mpz_sub (t1, t0, t1);

That's certainly a micro optimization, but let's keep things simple.

I've pushed this fix now, I think there were only comment and ChangeLog
changes since the previous version of the patch.

Thanks for the review,

Niels Möller. PGP key CB4962D070D77D7FCB8BA36271D8F1FF368C6677.
Internet email is subject to wholesale government surveillance.

More information about the gmp-bugs mailing list