1
0

fenv.h 883 B

123456789101112131415161718192021222324252627282930313233343536
  1. #if defined(_SOFT_FLOAT) || defined(__NO_FPRS__)
  2. #define FE_ALL_EXCEPT 0
  3. #define FE_TONEAREST 0
  4. #else
  5. #define FE_TONEAREST 0
  6. #define FE_TOWARDZERO 1
  7. #define FE_UPWARD 2
  8. #define FE_DOWNWARD 3
  9. #define FE_INEXACT 0x02000000
  10. #define FE_DIVBYZERO 0x04000000
  11. #define FE_UNDERFLOW 0x08000000
  12. #define FE_OVERFLOW 0x10000000
  13. #define FE_INVALID 0x20000000
  14. #define FE_ALL_EXCEPT 0x3e000000
  15. #ifdef _GNU_SOURCE
  16. #define FE_INVALID_SNAN 0x01000000
  17. #define FE_INVALID_ISI 0x00800000
  18. #define FE_INVALID_IDI 0x00400000
  19. #define FE_INVALID_ZDZ 0x00200000
  20. #define FE_INVALID_IMZ 0x00100000
  21. #define FE_INVALID_COMPARE 0x00080000
  22. #define FE_INVALID_SOFTWARE 0x00000400
  23. #define FE_INVALID_SQRT 0x00000200
  24. #define FE_INVALID_INTEGER_CONVERSION 0x00000100
  25. #define FE_ALL_INVALID 0x01f80700
  26. #endif
  27. #endif
  28. typedef unsigned fexcept_t;
  29. typedef double fenv_t;
  30. #define FE_DFL_ENV ((const fenv_t *)-1)