[Ecls-list] Ecl version of with-float-traps-masked and vector-sap?
Stas Boukarev
stassats at gmail.com
Wed Feb 8 13:23:46 UTC 2012
Raymond Toy <toy.raymond at gmail.com> writes:
> Does ecl have the equivalent of cmucl's (and sbcl's)
> with-float-traps-masked and vector-sap?
>
> With-float-traps-masked sets up the fpu state to mask certain
> floating-point exceptions.
>
> Vector-sap basically takes a specialized array and returns the address
> of where the data actually is. This assumes that (simple-array
> double-float (*)) is stored in memory as one or more header words
> followed by consecutive double-floats.
>
> Oh, I also need the equivalent of without-gcing.
I assume that you need without-gcing to use vector-sap safely, but SBCL
has WITH-PINNED-OBJECTS, which prevents the GC from moving objects. So
if ECL has something like this, I'd think it's more preferable than
without-gcing.
--
With best regards, Stas.
More information about the ecl-devel
mailing list