|
NAMEfeclearexcept , fegetexceptflag ,
feraiseexcept ,
fesetexceptflag , fetestexcept
—
floating-point exception flag manipulation
LIBRARYMath Library (libm, -lm)SYNOPSIS#include <fenv.h>
int
int
int
int
int
DESCRIPTIONThefeclearexcept () routine clears the floating-point
exception flags specified by excepts, whereas
feraiseexcept () raises the specified exceptions.
Raising an exception causes the corresponding flag to be set, and a
SIGFPE is delivered to the process if the exception is
unmasked.
The The For all of these functions, the possible types of exceptions include those described in fenv(3). Some architectures may define other types of floating-point exceptions. IMPLEMENTATION NOTESOn some architectures, raising an overflow or underflow exception also causes an inexact exception to be raised. In these cases, the overflow or underflow will be raised first.The RETURN VALUESThefeclearexcept (),
fegetexceptflag (),
feraiseexcept (), and
fesetexceptflag () functions return 0 upon success, and
non-zero otherwise. The fetestexcept () function
returns the bitwise OR of the values of the current exception flags that were
requested.
SEE ALSOsigaction(2), feholdexcept(3), fenv(3), feupdateenv(3), fpgetsticky(3), fpresetsticky(3)STANDARDSThefeclearexcept (),
fegetexceptflag (),
feraiseexcept (),
fesetexceptflag (), and
fetestexcept () routines conform to
ISO/IEC 9899:1999 (“ISO C99”).
HISTORYThese functions first appeared in FreeBSD 5.3.
Visit the GSP FreeBSD Man Page Interface. |