[Cfp-interest] Reduction functions, NaNs, exceptions

Fred J. Tydeman tydeman at tybor.com
Thu Jul 26 16:25:04 PDT 2018


On Wed, 25 Jul 2018 11:24:55 -0500 Rajan Bhakta wrote:
>
>    Fred: Look into reduction functions and NaN's for optional exceptions.

The 754 group agrees that exceptions are optional (may happen) 
if one of the operands is a NaN.
That is, exceptions are not required, nor are they prohibited.

So, sum( [+inf, -inf, NaN], 3)  is allowed to raise invalid for inf-inf,
but is not required to.  

However, our 18661 spec requires that invalid be raised.

---
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