Il 2022-09-05 19:04 Marco Bodrato ha scritto:
Il 2022-08-30 10:25 Vincent Lefevre ha scritto:
or even (mn == 0 check just above this code rules out |m| < 1)

   mpz_set_ui (r, mpz_cmpabs_ui (m, 1));

I agree with this solution. Will you commit it?

I incorrectly removed the "Niels Möller wrote:" line.
The question is for Niels, of course.

I propose to also add a couple of tests to mini-gmp/tests/t-powm.c ,
to keep track of this.

I'll push the tests just after the correction...

Ĝis,
m

PS: thanks for the report
_______________________________________________
gmp-bugs mailing list
gmp-bugs@gmplib.org
https://gmplib.org/mailman/listinfo/gmp-bugs

Reply via email to