mpz_invert (x, 1, 0)

bodrato at bodrato at
Thu Mar 1 16:07:53 CET 2012


The implementation of mpz_invert in GMP 5.0.4, called with
mpz_invert (x, 1, 0), return x=1, i.e. it gives 1 as the inverse of 1
modulo zero.

I recently changed the behaviour of that function in the main repo:

I'd like to backport this change to the 5.0 branch, with the new test
Torbjorn wrote for that function.



More information about the gmp-devel mailing list