Save the floating-point environment, clear all flags, and ignore future errors
#include <fenv.h> int feholdexcept( fenv_t *envp );
The feholdexcept() function saves the floating-point environment in the object that envp points to, clears all the floating-point status flags, and installs a nonstop mode. In nonstop mode, floating-point exceptions don't interrupt execution.
To restore the floating-point environment, use fesetenv() or feupdateenv().
0
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | Yes |