mpz_sqrt_if_perfect_square
marco.bodrato at tutanota.com
marco.bodrato at tutanota.com
Sat Jul 4 23:16:04 CEST 2026
Ciao,
29 giu 2026, 12:26 da braintwo at gmail.com:
> Fixed now.
> Nit: It does compile because the implicit declaration seems to work. I had even tested with > autoreconf && ./configure && make && make check.
> I'll try to turn on -Werror in the future
>
Now it passes the tests, noone commented, so I pushed your code to the repository.
> Niels had suggested that "undefined" is only rarely used in the docs and suggested trying something different.
>
True, it is rarely used. And I'm not sure it is always used correctly.
The documentation for the function mpz_sqrtrem says that:
"If @var{rop1} and @var{rop2} are the same variable, the results are
undefined".
But reading the code I'd say that in that case
"the behaviour of this function is undefined "
Ĝis,
m
--
DC: https://vado.li/dc-bodrato
More information about the gmp-devel
mailing list