Manual Reference Pages - FEGETEXCEPT (3)
- floating-point exception masking
.Fd #pragma STDC FENV_ACCESS ON
feenableexcept int excepts
fedisableexcept int excepts
unmask and mask (respectively) exceptions specified in
returns the current exception mask.
All exceptions are masked by default.
Floating-point operations that produce unmasked exceptions will trap, and a
will be delivered to the process.
By installing a signal handler for
applications can take appropriate action immediately without
testing the exception flags after every operation.
Note that the trap may not be immediate, but it should occur
before the next floating-point instruction is executed.
For all of these functions, the possible types of exceptions
include those described in
Some architectures may define other types of floating-point exceptions.
functions return a bitmap of the exceptions that were unmasked
prior to the call.
Functions 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
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.
Output converted with manServer 1.07.