/* (c) Copyright 2019 Joel Sherrill #include /* FUNCTION <>---set current floating-point environment INDEX fesetenv SYNOPSIS #include int fesetenv(const fenv_t *<[envp]>); Link with -lm. DESCRIPTION This method attempts to establish the floating-point environment pointed to by <[envp]>. The argument <[envp]> must point to a floating-point environment obtained via <> or <> or a floating-point environment macro such as <>. It only sets the states of the flags as recorded in its argument, and does not actually raise the associated floating-point exceptions. RETURNS If floating-point environment was successfully established, then 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 fesetenv(const fenv_t *envp) { return -ENOTSUP; }