gmp_printf bug?

Niels Möller nisse at
Wed Aug 10 20:50:40 CEST 2011

Vincent Lefevre <vincent at> writes:

> MPFR can do that. Or is the problem is that you want to generate
> the table at configure time because the limb size may be arbitrarily
> large, so that you don't want to depend on MPFR?

The table is generated after ./configure, and before the files that go
into libgmp are compiled (or at least, before any files which uses the
table in question).

So the table generation should not depend on gmp, nor on mpfr. If I
understand Torbjörn correctly, it should only use plain C, and the
bignum functions defined in the file dumbmp.c (a subset of GMP's mpz
interface, with a less sophisticated implementation).


Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.

More information about the gmp-devel mailing list