GMP's Speed

Chris Osborne chris.osborne at
Sat Mar 10 12:39:49 CET 2012

Well I'm on a 64-bit linux so I'm just going to make the program check the size of the variable and use long or gmp where appropriate, should give a major boost in speed for numbers smaller than 2^64, and I'll see how it goes from here, we want to build a database going up to numbers with around 10^6 digits, so I should expect gmp to be quite useful.

 Thanks for the advice

----- Original Message -----
From: degski
Sent: 03/09/12 12:10 PM
To: gmp-discuss at
Subject: GMP's Speed

 > (unless you're stuck with M$ systems where 'long' is always 32 bits). > > -- > Torbj?rn Deep, Mate! You're right, long won't cut it! And?

More information about the gmp-discuss mailing list