* Zajcev Evgeny <zevlg@xxxxxxxxx> writes:
> "Johann 'Myrkraverk' Oskarsson" <johann@xxxxxxxxxxxxxx> writes:
>> Does this mean we have 32 bit ints as ffi objects? AFAICT, there is
>> no 32 bit int in lisp...
> Definitely, 32bits ints are possible as ffi objects. However it is
> not quite defined how to convert emacs lisp data from/into them. We
> might have two aproaches:
> (setq v1 (make-ffi-object 'int))
> (ffi-set v1 10) ; [1]
> (ffi-set v1 2147483646.0) ; [2]
> (ffi-get v1)
> ==> 10 ; [1] fits into elisp int
> (ffi-get v1)
> ==> 2147483646.0 ; [2] does not fit into elisp int
> Currently only [1] will work i think ..
> Any ideas are very encouraged!
Is this something that bignum would solve?
--
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
| In space, |
| No one can hear you rip a stinky |
|------------------------------------<steve@xxxxxxxxxxx>---|
pgpkmF1qt1xDe.pgp
Description: PGP signature
|