Everything

feholdexcept


Saves the floating-point environment.

[Format]

#include <fenv.h>

long feholdexcept(fenv_t *f);

[Parameters]

f Pointer to the floating-point environment

[Return values]

0 only when the environment has been saved successfully

[Remarks]

When saving the floating-point function environment, the feholdexcept function clears the floating-point status flags and sets the non-stop mode for all floating-point exceptions. In non-stop mode, execution continues even after a floating-point exception occurs.

Do not use this function when compiler option nofpu is selected. If used, the function returns a nonzero value, which indicates an abnormality.