summaryrefslogtreecommitdiffstats
path: root/tools/regression/lib/msun/test-trig.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/regression/lib/msun/test-trig.c')
-rw-r--r--tools/regression/lib/msun/test-trig.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/tools/regression/lib/msun/test-trig.c b/tools/regression/lib/msun/test-trig.c
index 1ac7873..80f1aef 100644
--- a/tools/regression/lib/msun/test-trig.c
+++ b/tools/regression/lib/msun/test-trig.c
@@ -42,8 +42,7 @@ __FBSDID("$FreeBSD$");
#include <math.h>
#include <stdio.h>
-#define ALL_STD_EXCEPT (FE_DIVBYZERO | FE_INEXACT | FE_INVALID | \
- FE_OVERFLOW | FE_UNDERFLOW)
+#include "test-utils.h"
#define LEN(a) (sizeof(a) / sizeof((a)[0]))
@@ -66,7 +65,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)
#define testall(prefix, x, result, exceptmask, excepts) do { \
@@ -80,19 +79,6 @@ __FBSDID("$FreeBSD$");
test(prefix##f, x, (float)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));
-}
-
/*
* Test special cases in sin(), cos(), and tan().
*/
OpenPOWER on IntegriCloud