_mp_alloc to long int

Roman Savelyev rsavelyev at wlu.ca
Fri Jul 29 19:12:18 CEST 2022


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