summaryrefslogtreecommitdiffstats
path: root/tools/regression/lib/msun/test-exponential.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/regression/lib/msun/test-exponential.c')
-rw-r--r--tools/regression/lib/msun/test-exponential.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/tools/regression/lib/msun/test-exponential.c b/tools/regression/lib/msun/test-exponential.c
index 53a6116..010e0fd 100644
--- a/tools/regression/lib/msun/test-exponential.c
+++ b/tools/regression/lib/msun/test-exponential.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 b^x. */
@@ -81,17 +80,6 @@ __FBSDID("$FreeBSD$");
test(expm1f, 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)
{
OpenPOWER on IntegriCloud