fenv.h 527 B

1234567891011121314151617181920212223242526272829
  1. #if __HAVE_68881__ || __mcffpu__
  2. #define FE_INEXACT 8
  3. #define FE_DIVBYZERO 16
  4. #define FE_UNDERFLOW 32
  5. #define FE_OVERFLOW 64
  6. #define FE_INVALID 128
  7. #define FE_ALL_EXCEPT 0xf8
  8. #define FE_TONEAREST 0
  9. #define FE_TOWARDZERO 16
  10. #define FE_DOWNWARD 32
  11. #define FE_UPWARD 48
  12. #else
  13. #define FE_ALL_EXCEPT 0
  14. #define FE_TONEAREST 0
  15. #endif
  16. typedef unsigned fexcept_t;
  17. typedef struct {
  18. unsigned __control_register, __status_register, __instruction_address;
  19. } fenv_t;
  20. #define FE_DFL_ENV ((const fenv_t *) -1)