| |||
| Home > Floating-point support > C99 rounding mode and floating-point exception macros | |||
The following functionality requires you to select a floating-point
model that supports exceptions, such as --fpmode=ieee_full or --fpmode=ieee_fixed.
C99 defines a macro for each rounding mode and each exception. The macros are:
FE_DIVBYZERO
FE_INEXACT
FE_INVALID
FE_OVERFLOW
FE_UNDERFLOW
FE_ALL_EXCEPT
FE_DOWNWARD
FE_TONEAREST
FE_TOWARDZERO
FE_UPWARD.
The exception macros are bit fields. The macro FE_ALL_EXCEPT is
the bitwise OR of all of them.
Compiler Reference: