gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] [Maxima] Out of range floating point number determinatio


From: Camm Maguire
Subject: Re: [Gcl-devel] [Maxima] Out of range floating point number determination
Date: Wed, 22 Aug 2012 13:12:26 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Raymond Toy <address@hidden> writes:

> On Tue, Aug 21, 2012 at 1:55 PM, Camm Maguire <address@hidden> 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                                        address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah



reply via email to

[Prev in Thread] Current Thread [Next in Thread]