2
0

fenv.h 427 B

1234567891011121314151617181920212223242526
  1. #ifndef __SH_FPU_ANY__
  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_INEXACT 0x04
  8. #define FE_UNDERFLOW 0x08
  9. #define FE_OVERFLOW 0x10
  10. #define FE_DIVBYZERO 0x20
  11. #define FE_INVALID 0x40
  12. #define FE_ALL_EXCEPT 0x7c
  13. #endif
  14. typedef unsigned long fexcept_t;
  15. typedef struct {
  16. unsigned long __cw;
  17. } fenv_t;
  18. #define FE_DFL_ENV ((const fenv_t *) -1)