/* (c) Copyright 2019 Joel Sherrill #include /* FUNCTION <>---save current floating-point environment INDEX feholdexcept SYNOPSIS #include int feholdexcept(fenv_t *<[envp]>); Link with -lm. DESCRIPTION This method attempts to save the current floating-point environment in the fenv_t instance pointed to by <[envp]>, clear the floating point status flags, and then, if supported by the target architecture, install a "non-stop" (e.g. continue on floating point exceptions) mode for all floating-point exceptions. RETURNS This method will return zero if the non-stop floating-point exception handler was installed. Otherwise, a non-zero value is returned. PORTABILITY ANSI C requires <>. Not all Newlib targets have a working implementation. Refer to the file <> to see the status for your target. */ /* * This is a non-functional implementation that should be overridden * by an architecture specific implementation in newlib/libm/machine/ARCH. */ int feholdexcept(fenv_t *envp) { return -ENOTSUP; }