Million digits of Pi

Andy borucki.andrzej at
Sun Nov 10 01:03:22 UTC 2019

I see, that mp_size_t must be signed (in code is using -size in some
loops), Cray has 48 bit int, but else is 32 bit long,
Changing to ptrdiff_t enable more than 16 GB for one number? (I can't check
it, because have 16 GB to while system)

niedz., 10 lis 2019 o 01:54 Vincent Lefevre <vincent at> napisał(a):

> On 2019-11-09 12:36:59 +0100, Torbjorn Granlund wrote:
> > paul zimmermann <Paul.Zimmermann at> writes:

> On 64-bit machines, MPFR will reach GMP's limit first. MPFR uses
> 64-bit types on such machines, while GMP uses a 32-bit type for
> some size. Now, not all MPFR functions use mpz, so that for basic
> functions, the practical limit will be the memory of the machine.

More information about the gmp-discuss mailing list