Size of mpz

David Baumgärtel baumgaertel.david at googlemail.com
Thu Nov 26 11:37:39 UTC 2015


Hey!

I have a question regarding the base of a randomised mpz-number.
I used the speed.c file to compare the run-times of multiplication
algorithms and there you can set the size of these numbers with the
parameter s.
My question is: If s is for example 10. How big are the numbers in
decimalsystem which are multiplied.
My assumption is: the base is 2, on a 64-bit CPU my number has now 10 * 64
= 640 digits. So the number is between 2^640-1 and 2^639. Is that correct?

Greetings,
David


More information about the gmp-discuss mailing list