bitwise OR of all supported floating-point exceptions
bitwise OR of all supported floating-point exceptions
pole error occurred in an earlier floating-point operation
pole error occurred in an earlier floating-point operation
rounding towards negative infinity
rounding towards negative infinity
inexact result: rounding was necessary to store the result of an earlier floating-point operation
inexact result: rounding was necessary to store the result of an earlier floating-point operation
domain error occurred in an earlier floating-point operation
domain error occurred in an earlier floating-point operation
the result of an earlier floating-point operation was too large to be representable
the result of an earlier floating-point operation was too large to be representable
rounding towards nearest representable value
rounding towards nearest representable value
rounding towards zero
rounding towards zero
the result of an earlier floating-point operation was subnormal with a loss of precision
the result of an earlier floating-point operation was subnormal with a loss of precision
rounding towards positive infinity
rounding towards positive infinity
Attempts to clear the floating-point exceptions that are listed in the bitmask argument excepts, which is a bitwise OR of the floating-point exception macros.
Attempts to clear the floating-point exceptions that are listed in the bitmask argument excepts, which is a bitwise OR of the floating-point exception macros.
bitmask listing the exception flags to clear
0 if all indicated exceptions were successfully cleared or if excepts is zero. A non-zero value on error.
1) Attempts to store the status of the floating-point environment in the object pointed to by envp.
1) Attempts to store the status of the floating-point environment in the object pointed to by envp.
pointer to the object of type fenv_t which holds the status of the floating-point environment
0 on success, non-zero otherwise.
Attempts to obtain the full contents of the floating-point exception flags that are listed in the bitmask argument excepts, which is a bitwise OR of the floating-point exception macros.
Attempts to obtain the full contents of the floating-point exception flags that are listed in the bitmask argument excepts, which is a bitwise OR of the floating-point exception macros.
pointer to an fexcept_t object where the flags will be stored or read from
bitmask listing the exception flags to get/set
0 on success, non-zero otherwise.
Returns the value of the floating-point rounding macro that corresponds to the current rounding direction.
Returns the value of the floating-point rounding macro that corresponds to the current rounding direction.
the floating-point rounding macro describing the current rounding direction or a negative value if the direction cannot be determined.
First, saves the current floating-point environment to the object pointed to by envp (similar to fegetenv), then clears all floating-point status flags, and then installs the non-stop mode: future floating-point exceptions will not interrupt execution (will not trap), until the floating-point environment is restored by feupdateenv or fesetenv.
First, saves the current floating-point environment to the object pointed to by envp (similar to fegetenv), then clears all floating-point status flags, and then installs the non-stop mode: future floating-point exceptions will not interrupt execution (will not trap), until the floating-point environment is restored by feupdateenv or fesetenv.
This function may be used in the beginning of a subroutine that must hide the floating-point exceptions it may raise from the caller. If only some exceptions must be suppressed, while others must be reported, the non-stop mode is usually ended with a call to feupdateenv after clearing the unwanted exceptions.
pointer to the object of type fenv_t where the floating-point environment will be stored
0 on success, non-zero otherwise.
Attempts to raise all floating-point exceptions listed in excepts (a bitwise OR of the floating-point exception macros).
Attempts to raise all floating-point exceptions listed in excepts (a bitwise OR of the floating-point exception macros). If one of the exceptions is FE_OVERFLOW or FE_UNDERFLOW, this function may additionally raise FE_INEXACT. The order in which the exceptions are raised is unspecified, except that FE_OVERFLOW and FE_UNDERFLOW are always raised before FE_INEXACT.
bitmask listing the exception flags to raise
0 if all listed exceptions were raised, non-zero value otherwise.
2) Attempts to establish the floating-point environment from the object pointed to by envp.
2) Attempts to establish the floating-point environment from the object pointed to by envp. The value of that object must be previously obtained by a call to feholdexcept or fegetenv or be a floating-point macro constant. If any of the floating-point status flags are set in envp, they become set in the environment (and are then testable with fetestexcept), but the corresponding floating-point exceptions are not raised (execution continues uninterrupted)
pointer to the object of type fenv_t which holds the status of the floating-point environment
0 on success, non-zero otherwise.
Attempts to copy the full contents of the floating-point exception flags that are listed in excepts from flagp into the floating-point environment.
Attempts to copy the full contents of the floating-point exception flags that are listed in excepts from flagp into the floating-point environment. Does not raise any exceptions, only modifies the flags.
pointer to an fexcept_t object where the flags will be stored or read from
bitmask listing the exception flags to get/set
0 on success, non-zero otherwise.
Attempts to establish the floating-point rounding direction equal to the argument round, which is expected to be one of the floating-point rounding macros.
Attempts to establish the floating-point rounding direction equal to the argument round, which is expected to be one of the floating-point rounding macros.
rounding direction, one of floating-point rounding macros
0 on success, non-zero otherwise.
Determines which of the specified subset of the floating-point exceptions are currently set.
Determines which of the specified subset of the floating-point exceptions are currently set. The argument excepts is a bitwise OR of the floating-point exception macros.
bitmask listing the exception flags to test
Bitwise OR of the floating-point exception macros that are both included in excepts and correspond to floating-point exceptions currently set.
First, remembers the currently raised floating-point exceptions, then restores the floating-point environment from the object pointed to by envp (similar to fesetenv), then raises the floating-point exceptions that were saved.
First, remembers the currently raised floating-point exceptions, then restores the floating-point environment from the object pointed to by envp (similar to fesetenv), then raises the floating-point exceptions that were saved.
This function may be used to end the non-stop mode established by an earlier call to feholdexcept.
pointer to the object of type fenv_t set by an earlier call to feholdexcept or fegetenv or equal to FE_DFL_ENV
0 on success, non-zero otherwise.