[Ecls-list] Accurately detecting FP exceptions

Goffioul Michael goffioul at imec.be
Wed Oct 26 04:33:18 UTC 2005


> > I have rewritten the floating-point number boxing routines
> > (make_shortfloat and make_longfloat) so that on the x86 
> (Intel-32 bit)
> > platforms additional FWAIT instructions are inserted. Since these
> > routines are called after almost every floating point 
> operation in the
> > standard library, the exceptions will be detected and 
> signaled at the
> > right point.
> 
> A minor fix was left: RANDOM did not use make_{short/long}float() and
> hence the floating point exceptions were not detected. I have 
> fixed this
> and now the PRINT*RANDOM tests are passed.

With the patch I just commited, it also works with MSVC.

Michael.




More information about the ecl-devel mailing list