How to use GMP.
Hashida
jhashida@fls.fujitsu.com
Thu, 08 May 2003 15:36:24 +0900
Is it bad to know?
Hashida
Safuat Hamdy wrote:
> On Wednesday 07 May 2003 21:08, Hashida wrote:
>
> > In addition, what does "_mp_alloc" mean?
> > Is "aaaaa._mp_alloc" 2 because "aaaaa" is used twice in mpz_*** ?
> > (set 1 in "mpz_init" and set 2 in "mpz_mul_ui")
>
> Boy, why don't you just use the regular interface?!! Ordinary users, and
> particularly beginners, are not supposed to fiddle around with the internals
> of mpz_t objects.
>
> Just say
>
> mpz_t a, b;
>
> ...
>
> and you're fine! No strange results!
>
> Since you yourself said that you are rather new to C _and_ GMP, you really
> should _first_ get some experience with just C before exploring the GMP
> internals. But even so, some GMP internals are descibed in the manual.
>
> --
>
> S. Hamdy | All primes are odd except 2,
> Dept. of Mathematics & Statistics | which is the oddest of all.
> University of Calgary |
> |
> unsolicited commercial e-mail |
> is strictly not welcome |
> _______________________________________________
> gmp-discuss mailing list
> gmp-discuss@swox.com
> https://gmplib.org/mailman/listinfo/gmp-discuss