[Ecls-list] Adding long long support to FFI.

Gregory Martin Pfeil sellout42 at mac.com
Wed May 3 06:57:01 UTC 2006


On 3 May 2006, at 0:06, Goffioul Michael wrote:

>> Here is (probably hackish) support for long long ints in
>> ECL's FFI. It checks for the HAVE_LONG_LONG symbol defined by
>> AC_C_LONG_LONG. Also,
>> -std=gnu99 is added to the gcc CFLAGS so that the
>> (U)LLONG_(MIN|MAX) are properly defined.
>
> (Not sure about the following, because I'm using ECL under Windows)
> Isn't there a rounding problem when calling make_integer with a
> long long argument? This function is defined on cl_fixnum, but to
> which type cl_fixnum is typedef'ed on your system?

Oh, you very well may be right. I'll look into this today and see  
what I can do to sort it out. Would it be a bad idea to typedef  
cl_fixnum to long long where it is available?

If there is a performance issue, maybe --enable-long-long-ffi could  
be a configure option, so someone who needs it could have it, and  
users at large don't have a problem.




More information about the ecl-devel mailing list