[Cfp-interest 1305] Re: fesetexcept() and optional inexact

Fred J. Tydeman tydeman at tybor.com
Sat May 4 20:52:44 PDT 2019


On Sat, 4 May 2019 19:54:59 -0700 (PDT) David Hough CFP wrote:
>
>It should not be implementation-defined, as far as 754 is concerned.
>Under default exception handling, the inexact flag is raised whenever
>the underflow or overflow flag is raised.   Under alternate exception handling,
>it might not be, but that's a function of the alternative exception handling
>chosen by the programmer, not an implementation choice.

C2x has two similar functions:

  feraiseexcept
  fesetexcept

They both set flags.
feraiseexcept with also trap (if traps are enabled)
fesetexcept will not trap (even if traps are enabled).



---
Fred J. Tydeman        Tydeman Consulting
tydeman at tybor.com      Testing, numerics, programming
+1 (702) 608-6093      Vice-chair of PL22.11 (ANSI "C")
Sample C99+FPCE tests: http://www.tybor.com
Savers sleep well, investors eat well, spenders work forever.



More information about the Cfp-interest mailing list