diff options
Diffstat (limited to 'lib/mlibc/options/ansi/musl-generic-math/nearbyintf.c')
-rw-r--r-- | lib/mlibc/options/ansi/musl-generic-math/nearbyintf.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/lib/mlibc/options/ansi/musl-generic-math/nearbyintf.c b/lib/mlibc/options/ansi/musl-generic-math/nearbyintf.c deleted file mode 100644 index 092e9ff..0000000 --- a/lib/mlibc/options/ansi/musl-generic-math/nearbyintf.c +++ /dev/null @@ -1,18 +0,0 @@ -#include <fenv.h> -#include <math.h> - -float nearbyintf(float x) -{ -#ifdef FE_INEXACT - #pragma STDC FENV_ACCESS ON - int e; - - e = fetestexcept(FE_INEXACT); -#endif - x = rintf(x); -#ifdef FE_INEXACT - if (!e) - feclearexcept(FE_INEXACT); -#endif - return x; -} |