diff options
Diffstat (limited to 'tools/regression/lib/msun/test-logarithm.c')
-rw-r--r-- | tools/regression/lib/msun/test-logarithm.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/tools/regression/lib/msun/test-logarithm.c b/tools/regression/lib/msun/test-logarithm.c index 258c514..c5f23b8 100644 --- a/tools/regression/lib/msun/test-logarithm.c +++ b/tools/regression/lib/msun/test-logarithm.c @@ -41,8 +41,7 @@ __FBSDID("$FreeBSD$"); #include <ieeefp.h> #endif -#define ALL_STD_EXCEPT (FE_DIVBYZERO | FE_INEXACT | FE_INVALID | \ - FE_OVERFLOW | FE_UNDERFLOW) +#include "test-utils.h" #pragma STDC FENV_ACCESS ON @@ -63,7 +62,7 @@ __FBSDID("$FreeBSD$"); volatile long double _d = x; \ assert(feclearexcept(FE_ALL_EXCEPT) == 0); \ assert(fpequal((func)(_d), (result))); \ - assert(((func), fetestexcept(exceptmask) == (excepts))); \ + assert(((void)(func), fetestexcept(exceptmask) == (excepts))); \ } while (0) /* Test all the functions that compute log(x). */ @@ -82,17 +81,6 @@ __FBSDID("$FreeBSD$"); test(log1pf, x, result, exceptmask, excepts); \ } while (0) -/* - * Determine whether x and y are equal, with two special rules: - * +0.0 != -0.0 - * NaN == NaN - */ -int -fpequal(long double x, long double y) -{ - return ((x == y && !signbit(x) == !signbit(y)) || isnan(x) && isnan(y)); -} - void run_generic_tests(void) { |