1
0

fenv.h 476 B

1234567891011121314151617181920212223
  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. typedef unsigned long fexcept_t;
  17. typedef struct {
  18. unsigned long __cw;
  19. } fenv_t;
  20. #define FE_DFL_ENV ((const fenv_t *) -1)