On Fri, 27 Sep 2019, Torbjörn Granlund wrote:
paul zimmermann <[email protected]> writes:
four years ago [1] I reported an issue with gmp_fprintf in GMP 6.1.0,
which cannot print correcly a number of 8589934589 bits (less than 2^33).
I just checked with today's snapshot: the issue is still there.
Yikes!
Will the next GMP release be still limited to less than 2^33 bits?
Probably.
I believe the issue is the printf family's use of 'int' for sizes. We
cannot really get around that in gmp_*printf* while staying compatible.
(I assume it was poor design by us in the first place not to use some
wider signed type.)
The report was also about mpz_get_str, which does not have this
limitation. And for printf, it should be possible to make it print
correctly and return a nonsense integer.
--
Marc Glisse
_______________________________________________
gmp-bugs mailing list
[email protected]
https://gmplib.org/mailman/listinfo/gmp-bugs