[Cfp-interest 2999] <math.h> macros and exceptions
Fred J. Tydeman
tydeman at tybor.com
Sun Feb 11 09:58:13 PST 2024
On Wed, 7 Feb 2024 19:37:46 +0000 Rajan Bhakta wrote:
>
> Jim: Are there any <math.h> macros with this issue? Should words be added to an introduction section in <float.h>?
> ^Fred: Look into.
<math.h> macros that should not raise exceptions when evaluated:
HUGE_VAL, HUGE_VALF, HUGE_VALL, HUGE_VAL_D*
INFINITY, DEC_INFINITY
NAN, DEC_NAN
Aside: Should 7.12.1#5 (overflow) mention HUGE_VAL_D*?
SNAN macro "requirement" is in a Recommended practice in F.2.1.
FLTn_SNAN, DECn_SNAN, FLTnx_SNAN, DECnx_SNAN in H.3#6
HUGE_VAL_Fn, HUGE_VAL_Dn, HUGE_VAL_Fnx, HUGE_VAL_Dnx in H.11.1
Aside: 5.2.4.2.2#22 mentions SNAN for translation time initializer,
while H.3#6 mentions static or thread storage duration.
---
Fred J. Tydeman Tydeman Consulting
tydeman at tybor.com Testing, numerics, programming
+1 (702) 608-6093 Vice-chair of INCITS/C (ANSI "C")
Sample C17+FPCE tests: http://www.tybor.com
Savers sleep well, investors eat well, spenders work forever.
More information about the Cfp-interest
mailing list