1570af302Sopenharmony_ci#define FE_INVALID 1 2570af302Sopenharmony_ci#define __FE_DENORM 2 3570af302Sopenharmony_ci#define FE_DIVBYZERO 4 4570af302Sopenharmony_ci#define FE_OVERFLOW 8 5570af302Sopenharmony_ci#define FE_UNDERFLOW 16 6570af302Sopenharmony_ci#define FE_INEXACT 32 7570af302Sopenharmony_ci 8570af302Sopenharmony_ci#define FE_ALL_EXCEPT 63 9570af302Sopenharmony_ci 10570af302Sopenharmony_ci#define FE_TONEAREST 0 11570af302Sopenharmony_ci#define FE_DOWNWARD 0x400 12570af302Sopenharmony_ci#define FE_UPWARD 0x800 13570af302Sopenharmony_ci#define FE_TOWARDZERO 0xc00 14570af302Sopenharmony_ci 15570af302Sopenharmony_citypedef unsigned short fexcept_t; 16570af302Sopenharmony_ci 17570af302Sopenharmony_citypedef struct { 18570af302Sopenharmony_ci unsigned short __control_word; 19570af302Sopenharmony_ci unsigned short __unused1; 20570af302Sopenharmony_ci unsigned short __status_word; 21570af302Sopenharmony_ci unsigned short __unused2; 22570af302Sopenharmony_ci unsigned short __tags; 23570af302Sopenharmony_ci unsigned short __unused3; 24570af302Sopenharmony_ci unsigned int __eip; 25570af302Sopenharmony_ci unsigned short __cs_selector; 26570af302Sopenharmony_ci unsigned int __opcode:11; 27570af302Sopenharmony_ci unsigned int __unused4:5; 28570af302Sopenharmony_ci unsigned int __data_offset; 29570af302Sopenharmony_ci unsigned short __data_selector; 30570af302Sopenharmony_ci unsigned short __unused5; 31570af302Sopenharmony_ci unsigned int __mxcsr; 32570af302Sopenharmony_ci} fenv_t; 33570af302Sopenharmony_ci 34570af302Sopenharmony_ci#define FE_DFL_ENV ((const fenv_t *) -1) 35