2
0

fenv.h 754 B

123456789101112131415161718192021222324252627282930313233
  1. #define FE_INVALID 1
  2. #define __FE_DENORM 2
  3. #define FE_DIVBYZERO 4
  4. #define FE_OVERFLOW 8
  5. #define FE_UNDERFLOW 16
  6. #define FE_INEXACT 32
  7. #define FE_ALL_EXCEPT 63
  8. #define FE_TONEAREST 0
  9. #define FE_DOWNWARD 0x400
  10. #define FE_UPWARD 0x800
  11. #define FE_TOWARDZERO 0xc00
  12. typedef unsigned short fexcept_t;
  13. typedef struct {
  14. unsigned short __control_word;
  15. unsigned short __unused1;
  16. unsigned short __status_word;
  17. unsigned short __unused2;
  18. unsigned short __tags;
  19. unsigned short __unused3;
  20. unsigned int __eip;
  21. unsigned short __cs_selector;
  22. unsigned int __opcode:11;
  23. unsigned int __unused4:5;
  24. unsigned int __data_offset;
  25. unsigned short __data_selector;
  26. unsigned short __unused5;
  27. } fenv_t;
  28. #define FE_DFL_ENV ((const fenv_t *) -1)