1#define FE_INVALID 1
2#define FE_DIVBYZERO 2
3#define FE_OVERFLOW 4
4#define FE_UNDERFLOW 8
5#define FE_INEXACT 16
6#define FE_ALL_EXCEPT 31
7#define FE_TONEAREST 0
8#define FE_DOWNWARD 0x800000
9#define FE_UPWARD 0x400000
10#define FE_TOWARDZERO 0xc00000
11
12typedef unsigned int fexcept_t;
13
14typedef struct {
15    unsigned int __fpcr;
16    unsigned int __fpsr;
17} fenv_t;
18
19#define FE_DFL_ENV ((const fenv_t*)-1)
20