[Ecls-list] Request to mailing list Ecls-list rejected

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Fri Aug 13 09:50:42 UTC 2010


On Fri, Aug 13, 2010 at 11:35 AM, Gabriel Dos Reis <gdr at cs.tamu.edu> wrote:

> So, I am wondering why ECL is making that distinction?  That is, why does
> ECL need to distinguish 'long' from ECL_FIXNUM_TYPE?  Should not
> the distinction between GMP_LIMB_BITS vs. FIXNUM_BITS be sufficient?
>

Gabriel, I think you have found a major problem. GMP only exports routines
to convert from gmp to long and int, not to long long. Since I did not want
to tinker with GMP's internals, I almost never manipulated limbs myself. I
have not the faintest idea of what choices GMP takes when facing an LLP
platform. I believe the Sage group switched from GMP to MPIR for this
precise reason, but it also poses a significant problem for ECL because we
will have to have a look at the cl_fixnum -> gmp conversions scattered
throughout the code, which currently rely on GMP's mpz_set_si function and
this is taking LONG not LONG LONG!!!


Juanjo

-- 
Instituto de Física Fundamental, CSIC
c/ Serrano, 113b, Madrid 28006 (Spain)
http://juanjose.garciaripoll.googlepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20100813/5b7e5172/attachment.html>


More information about the ecl-devel mailing list