Standards
Standards / Extensions |
C or C++ |
Dependencies |
|
both
|
OS/390 V2R6
|
Format
#include <float.h>
#include <fpxcp.h>
void fp_clr_flag(mask)
fpflag_t mask;
General description
The fp_clr_flag() function
resets the exception status flags defined by the
mask parameter
to 0 (false). The remaining flags in the exception status remain unchanged.
Note: This function works only in IEEE Binary Floating-Point. See
IEEE binary floating-point for more information about IEEE
Binary Floating-Point.
The
fpxcp.h file defines
the following names for the flags indicating floating-point exception
status:
- FP_INVALID
- Invalid operation summary
- FP_OVERFLOW
- Overflow
- FP_UNDERFLOW
- Underflow
- FP_DIV_BY_ZERO
- Division by 0
- FP_INEXACT
- Inexact result
Users can reset multiple exception flags using
the fp_clr_flag() function by OR-ing the names of individual flags.
For example, the following resets both the overflow and inexact flags.
fp_clr_flag(FP_OVERFLOW | FP_INEXACT)
Returned value
fp_clr_flag() returns no
values.