How to use GMP.
Hashida
jhashida@fls.fujitsu.com
Mon, 12 May 2003 15:34:16 +0900
Thank you, Kevin Ryde.
I can understand.
I thank everyone except a rude childish person who used the words such as
"dumb" and "stupid" for me.
Hashida
Kevin Ryde wrote:
> Hashida <jhashida@fls.fujitsu.com> writes:
> >
> > How do the above four results express "(2^31-1)*3=6442450941"?
>
> The values are 32-bits each, concatenated together. _mp_d[0] is the
> low half, _mp_d[1] the high. So 2147483645 + 1 * 2^32 == 6442450941.
>
> > In addition, what does "_mp_alloc" mean?
>
> See "Internals" in the manual. Ask again if that's unclear.
>
> > Is "aaaaa._mp_alloc" 2 because "aaaaa" is used twice in mpz_*** ?
>
> No, because _mp_d has been allocated space for 2 limbs.