How to use GMP.

DTAshley@aol.com DTAshley@aol.com
Thu, 8 May 2003 01:52:23 EDT


--part1_181.1aa846df.2beb4a97_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Yeah, I agree, this is getting out of hand.

The GMP web page needs to be changed so that you have to pass a C-language 
test and computer literacy (linkers, compilers, make files) test before you 
can download the source code.  If you can't pass the test, you can only get 
the binaries.

Dave.

In a message dated 5/8/2003 12:40:27 AM Eastern Daylight Time, 
hamdy@math.ucalgary.ca writes:

> 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


--part1_181.1aa846df.2beb4a97_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<HTML><FONT FACE=3Darial,helvetica><FONT  SIZE=3D2 FAMILY=3D"SANSSERIF" FACE=
=3D"Arial" LANG=3D"0">Yeah, I agree, this is getting out of hand.<BR>
<BR>
The GMP web page needs to be changed so that you have to pass a C-language t=
est and computer literacy (linkers, compilers, make files) test before you c=
an download the source code.&nbsp; If you can't pass the test, you can only=20=
get the binaries.<BR>
<BR>
Dave.<BR>
<BR>
In a message dated 5/8/2003 12:40:27 AM Eastern Daylight Time, hamdy@math.uc=
algary.ca writes:<BR>
<BR>
<BLOCKQUOTE TYPE=3DCITE style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT=
: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px">On Wednesday 07 May 2003 21:08,=
 Hashida wrote:<BR>
<BR>
&gt;In addition, what does "_mp_alloc" mean?<BR>
&gt;Is "aaaaa._mp_alloc" 2 because "aaaaa" is used twice in mpz_*** ?<BR>
&gt;(set 1 in "mpz_init" and set 2 in "mpz_mul_ui")<BR>
<BR>
Boy, why don't you just use the regular interface?!!&nbsp; Ordinary users, a=
nd <BR>
particularly beginners, are not supposed to fiddle around with the internals=
 <BR>
of mpz_t objects.<BR>
<BR>
Just say<BR>
<BR>
&nbsp; mpz_t&nbsp;&nbsp; a, b;<BR>
<BR>
&nbsp; ...<BR>
<BR>
and you're fine!&nbsp; No strange results!<BR>
<BR>
Since you yourself said that you are rather new to C _and_ GMP, you really <=
BR>
should _first_ get some experience with just C before exploring the GMP <BR>
internals.&nbsp; But even so, some GMP internals are descibed in the manual.=
<BR>
<BR>
<BR>
-- <BR>
<BR>
S. Hamdy&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp; All primes are odd except 2,<BR>
Dept. of Mathematics &amp;Statistics&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp; which i=
s the oddest of all.<BR>
University of Calgary&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp; |<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<BR>
unsolicited commercial e-mail&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |<BR>
is strictly not welcome&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
; |<BR>
_______________________________________________<BR>
gmp-discuss mailing list<BR>
gmp-discuss@swox.com<BR>
https://gmplib.org/mailman/listinfo/gmp-discuss</BLOCKQUOTE><BR>
<BR>
</FONT></HTML>
--part1_181.1aa846df.2beb4a97_boundary--