12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- #ifndef _FENV_H
- # error "Never use <bits/fenv.h> directly; include <fenv.h> instead."
- #endif
- enum
- {
- FE_INEXACT = 1 << 3,
- #define FE_INEXACT FE_INEXACT
- FE_DIVBYZERO = 1 << 4,
- #define FE_DIVBYZERO FE_DIVBYZERO
- FE_UNDERFLOW = 1 << 5,
- #define FE_UNDERFLOW FE_UNDERFLOW
- FE_OVERFLOW = 1 << 6,
- #define FE_OVERFLOW FE_OVERFLOW
- FE_INVALID = 1 << 7
- #define FE_INVALID FE_INVALID
- };
- #define FE_ALL_EXCEPT \
- (FE_INEXACT | FE_DIVBYZERO | FE_UNDERFLOW | FE_OVERFLOW | FE_INVALID)
- enum
- {
- FE_TONEAREST = 0,
- #define FE_TONEAREST FE_TONEAREST
- FE_TOWARDZERO = 1 << 4,
- #define FE_TOWARDZERO FE_TOWARDZERO
- FE_DOWNWARD = 2 << 4,
- #define FE_DOWNWARD FE_DOWNWARD
- FE_UPWARD = 3 << 4
- #define FE_UPWARD FE_UPWARD
- };
- typedef unsigned int fexcept_t;
- typedef struct
- {
- unsigned int __control_register;
- unsigned int __status_register;
- unsigned int __instruction_address;
- }
- fenv_t;
- #define FE_DFL_ENV ((__const fenv_t *) -1)
- #ifdef __USE_GNU
- # define FE_NOMASK_ENV ((__const fenv_t *) -2)
- #endif
|