math: add fenv pragma, relax the error check, simplify util.h
[libc-test] / src / math / util.c
index 3875695..1892173 100644 (file)
@@ -127,15 +127,3 @@ char *rstr(int r)
        }
        return "R?";
 }
-
-void setupfenv(int r)
-{
-       fesetround(r);
-       feclearexcept(FE_ALL_EXCEPT);
-}
-
-int getexcept(void)
-{
-       return fetestexcept(INEXACT|INVALID|DIVBYZERO|UNDERFLOW|OVERFLOW);
-}
-