From dda37cd17c670317381228412be75a151c58e6fe Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Sun, 21 Nov 2021 14:46:47 -0600 Subject: [PATCH] Define math_errhandling to MATH_ERREXCEPT. This indicates that floating-point exceptions are used to report math errors. The existing functions will still also set errno in the existing cases, but the new C99 functions generally will not. --- ORCACDefs/math.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ORCACDefs/math.h b/ORCACDefs/math.h index fec9516..08ea885 100644 --- a/ORCACDefs/math.h +++ b/ORCACDefs/math.h @@ -27,6 +27,10 @@ typedef long double double_t; #define ILOGB0 (-32767-1) #define ILOGBNAN (-32767-1) +#define MATH_ERRNO 1 +#define MATH_ERREXCEPT 2 +#define math_errhandling 2 + #define FP_INFINITE 0xFE #define FP_NAN 0xFD #define FP_NORMAL 0x00