Raymond Toy <[email protected]> writes: > On Tue, Aug 21, 2012 at 1:55 PM, Camm Maguire <[email protected]> wrote: > > Greetings! > > I was hoping to abstract this at the C (rather than hardware specific > assembler) level. Specifically the feenableexcept call provided in > fenv.h. Playing around with this, it does indeed appear to be "oneshot". > > Sure, whatever makes it easy for you. I'm not that familiar with the > C interface, but the bits in the HW don't get cleared on a trap. This > might be an artifact of how the trap handler works (sigaction or > whatever).
It looks like mingw32 uses _controlfp. Unfortunately, I cannot discover how to clear the exception in the signal handler. _clearfp(), _controlfp(-1,_MCW_EM), etc, all raise an additional SIGFPE in the handler, which is fatal. Ideas? Take care, -- Camm Maguire [email protected] ========================================================================== "The earth is but one country, and mankind its citizens." -- Baha'u'llah _______________________________________________ Gcl-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/gcl-devel
