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.
This commit is contained in:
Stephen Heumann 2021-11-21 14:46:47 -06:00
parent 3e08ba39aa
commit dda37cd17c
1 changed files with 4 additions and 0 deletions

View File

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