Guardian Native C Library Calls Reference Manual (G06.29+, H06.08+, J06.03+)

Guardian Native C Library Calls (f) fesetexceptflag(3)
NAME
fesetexceptflag - Sets floating-point exception flags
LIBRARY
H-series and J-series native Guardian processes: $SYSTEM.ZDLLnnn.ZCREDLL
32-bit H-series and J-series OSS processes: /G/system/zdllnnn/zcredll
64-bit H-series and J-series OSS processes: /G/system/zdllnnn/ycredll
SYNOPSIS
#include <fenv.h>
int fesetexceptflag(
const fexcept_t *flagp,
int excepts);
PARAMETERS
flagp Specifies the stored object that will be used to determine the states of the
floating-point exception ags.
excepts Species the floating-point exception flags with states that are to be set.
DESCRIPTION
The fesetexceptflag() function sets the states of the floating-point exception flags indicated by
the excepts parameter to the states stored in the object pointed to by the flagp parameter. The
value of flagp must have been previously set by a call to the fegetexceptflag() function whose
second parameter represented at least those floating-point exceptions represented by the excepts
parameter.
This function does not raise floating-point exceptions; this function only sets the states of the
flags.
The excepts parameter can be constructed as a bitwise OR of the exception macros:
FE_INEXACT, FE_DIVBYZERO, FE_UNDERFLOW, FE_OVERFLOW, and
FE_INVALID. FE_ALL_EXCEPT represents all the floating-point exceptions.
NOTES
This function is implemented only for the IEEE_float oating-point option. Applications using
this function cannot be compiled if the specified floating-point option is Tandem_float.
RETURN VALUES
The fesetexceptflag() function always returns 0 (zero), indicating that each of the specified flags
was successfully set to the appropriate state.
RELATED INFORMATION
Functions: feclearexcept(3), fegetexceptflag(3). feraiseexcept(3), fetestexcept(3).
STANDARDS CONFORMANCE
This function conforms to the ISO/IEC 9899:1999 standard.
This function conforms to the IEEE Std 1003.1, 2004 Edition.
527192-018 Hewlett-Packard Company 223