fenv.h 459 B

12345678910111213141516171819202122232425
  1. #ifdef __mips_soft_float
  2. #define FE_ALL_EXCEPT 0
  3. #define FE_TONEAREST 0
  4. #else
  5. #define FE_INEXACT 4
  6. #define FE_UNDERFLOW 8
  7. #define FE_OVERFLOW 16
  8. #define FE_DIVBYZERO 32
  9. #define FE_INVALID 64
  10. #define FE_ALL_EXCEPT 124
  11. #define FE_TONEAREST 0
  12. #define FE_TOWARDZERO 1
  13. #define FE_UPWARD 2
  14. #define FE_DOWNWARD 3
  15. #endif
  16. typedef unsigned short fexcept_t;
  17. typedef struct {
  18. unsigned __cw;
  19. } fenv_t;
  20. #define FE_DFL_ENV ((const fenv_t *) -1)