[Ecls-list] ERROR caused by FPU control settings...
dietrich at formgames.org
Sun Apr 21 07:11:41 UTC 2013
Thanks for your detailed answer!
On Fri, Apr 19, 2013 at 11:47 PM, Juan Jose Garcia-Ripoll <
juanjose.garciaripoll at gmail.com> wrote:
> On Fri, Apr 19, 2013 at 5:07 AM, Dietrich Bollmann <dietrich at formgames.org
> > wrote:
>> Yes, I am: ECL relies on the underlying operating system > The operating
>> system is Windows > And here is the problem :)
> ECL needs to touch the FPU because Common Lisp mandates that arithmetic
> errors give rise to exceptions (which are then turned into Common Lisp
> conditions). However, ECL contains a flag to build without touching the FPU
> but rather checking the outcome of the computation and the FPU flags (See
> src/c/number.d and the headers it includes)
> Note that not using the FPU is fragile: to be conformant, in the compiled
> code we would have to add such checks _everywhere_, but we currently avoid
> that by setting the exception flags in the FPU.
Now I understand the motivation for manipulating the FPU flags better. I
will try to avoid using the build flag then.
For the time being I get along with wrapping the code into the Rhino
and ON_FPU_AfterSloppyCall(). I add your comment to the code to explain
the motivation for using them.
By the way, let me use the opportunity to express my gratitude for your
diligent work on ECL: thank you very much for this very interesting and
With my best wishes,
Dietrich Bollmann, Ph.D.
The University of Tokyo
Department of Architecture
4-6-1 Komaba, Meguro-ku, Tokyo 153-8505, JAPAN
> Instituto de Física Fundamental, CSIC
> c/ Serrano, 113b, Madrid 28006 (Spain)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ecl-devel