/* (c) Copyright 2019 Joel Sherrill #include /* FUNCTION <>---set floating-point status flags INDEX fesetexceptflag SYNOPSIS #include int fesetexceptflag(const fexcept_t *<[flagp]>, int <[excepts]>); Link with -lm. DESCRIPTION This method attempts to set the floating-point status flags specified by <[excepts]> to the states indicated by <[flagp]>. The argument <[flagp]> must point to an fexcept_t instance obtained via calling <> with at least the floating-point exceptions specified by the argument <[excepts]>. This method does not raise any floating-point exceptions. It only sets the state of the flags. RETURNS If the information was successfully returned, this method returns zero. 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 fesetexceptflag(const fexcept_t *flagp, int excepts) { return -ENOTSUP; }