_mp_alloc to long int

cents2823 at yahoo.co.jp cents2823 at yahoo.co.jp
Mon Aug 1 05:18:25 CEST 2022

* { font-size: 13px; font-family: 'MS Pゴシック', sans-serif;}p, ul, ol, blockquote { margin: 0;}a { color: #0064c8; text-decoration: none;}a:hover { color: #0057af; text-decoration: underline;}a:active { color: #004c98;}Hi,

The following report shows how to extend the number of mpz_t(and mpf_t) to 2 ^ 63-1 lims.
Please also refer to this.

The report:

Expand gmp number and I calculated pi 121 billion digits(2021/4 gmp-discus Archive)

Susumu Tsukamoto

From: "Roman Savelyev" <rsavelyev at wlu.ca> 

To: gmp-discuss at gmplib.org
Sent: Friday, July 29, 2022 12:12:18 PM
Subject: _mp_alloc to long int 

> A project I am working on, requires more than 2^37 limbs, more than a 64 bit system would allow,

> if mp_alloc is set to int.

> When I manually change it to long int,recompile and run,

> I get a segmentation fault, particularly in mpz_set_ui through gmpxx.
> Would you be willing to shine a light on what needs to change within the program to make it possible to make this change?

More information about the gmp-discuss mailing list