[Cfp-interest 2195] Re: AI for feraiseexcept update

Jim Thomas jaswthomas at sbcglobal.net
Mon Oct 4 16:15:01 PDT 2021


The difference between C and IEC 60559 terminology might be confusing things here. 

C terminology: The feraiseexcept function raises floating exceptions.
IEC 60559 terminology: The feraiseexcept function signals floating exceptions.

In contrast, the fesetexcept function sets flags, without raising/signaling exceptions.

The difference in terminology resulted from C’s historical different use of “signal”.

- Jim Thomas

> On Oct 4, 2021, at 3:00 PM, David Hough CFP <pcfp at oakapple.net> wrote:
> 
> If all exception handling is default, then it's fine to treat inexact as
> if it were simultaneous with overflow and underflow and raise the flags
> together.
> 
> If alternate exception handling is specified for overflow or underflow,
> then no flags should be raised except by the user-defined alternate
> exception handler.
> 
> If alternate exception handling is specified for inexact, then the
> default handler for over or underflow should raise that the over or 
> underflow flag, and then invoke alternate exception handling for
> inexact, which might or might not raise the inexact flag.




More information about the Cfp-interest mailing list