|
NAMEfeenableexcept , fedisableexcept ,
fegetexcept —
floating-point exception masking
LIBRARYMath Library (libm, -lm)SYNOPSIS#include <fenv.h>
int
int
int
DESCRIPTIONThefeenableexcept () and
fedisableexcept () functions unmask and mask
(respectively) exceptions specified in excepts. The
fegetexcept () function returns the current exception
mask. All exceptions are masked by default.
Floating-point operations that produce unmasked exceptions will
trap, and a 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. RETURN VALUESThefeenableexcept (),
fedisableexcept (), and
fegetexcept () functions return a bitmap of the
exceptions that were unmasked prior to the call.
SEE ALSOsigaction(2), feclearexcept(3), feholdexcept(3), fenv(3), feupdateenv(3)BUGSFunctions in the standard library may trigger exceptions multiple times as a result of intermediate computations; however, they generally do not trigger spurious exceptions.No interface is provided to permit exceptions to be handled in nontrivial ways. There is no uniform way for an exception handler to access information about the exception-causing instruction, or to determine whether that instruction should be reexecuted after returning from the handler.
Visit the GSP FreeBSD Man Page Interface. |