1 #ifndef __ARM_PCS_VFP 2 #define FE_ALL_EXCEPT 0 3 #define FE_TONEAREST 0 4 #else 5 #define FE_INVALID 1 6 #define FE_DIVBYZERO 2 7 #define FE_OVERFLOW 4 8 #define FE_UNDERFLOW 8 9 #define FE_INEXACT 16 10 #define FE_ALL_EXCEPT 31 11 #define FE_TONEAREST 0 12 #define FE_DOWNWARD 0x800000 13 #define FE_UPWARD 0x400000 14 #define FE_TOWARDZERO 0xc00000 15 #endif 16 17 typedef unsigned long fexcept_t; 18 19 typedef struct { 20 unsigned long __cw; 21 } fenv_t; 22 23 #define FE_DFL_ENV ((const fenv_t *) -1) 24