[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libgmp3 problem on IA64

From: Kevin Ryde
Subject: Re: libgmp3 problem on IA64
Date: 31 Jul 2001 07:45:51 +1000
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.5

"Eric Gillespie, Jr." <address@hidden> writes:
> Probably not.  However, i have no idea what the digits are.  The only
> way to get a printed representation of a rep number is with gmp and
> obviously i can't do that :-/.  So i'm kinda stuck here.  I was hoping
> someone would jump in with an "Of course!  mpn_get_str() is doing XXX
> wrong!"

The trace you gave showed it promoting a fixnum up to a bignum, so you
could look at that in the debugger or with a printf, and the bignum
will end up being one limb, which is easy to look at directly in
z->_mp_d[0] too.

"David T. Ashley" <address@hidden> writes:
> Another question to ask is whether the caller is using (length + 1) and has
> accounted for the zero string terminator.

No, I think it calls mpz_get_str with a NULL, so gmp allocates the

reply via email to

[Prev in Thread] Current Thread [Next in Thread]