diff options
author | dim <dim@FreeBSD.org> | 2010-12-09 22:01:15 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2010-12-09 22:01:15 +0000 |
commit | a3786f65f1e2fa3a4e925fdb4b2b5544b9021bf9 (patch) | |
tree | 5f0a24f71baa3176c75a20a51a9e20a22c75426c /tools/regression/lib/msun/test-fmaxmin.c | |
parent | ad01c620333d05c430d583ee40647e396be1ab91 (diff) | |
parent | 12dd9eb8e940c48f9fc30dbc137071b4fe5caead (diff) | |
download | FreeBSD-src-a3786f65f1e2fa3a4e925fdb4b2b5544b9021bf9.zip FreeBSD-src-a3786f65f1e2fa3a4e925fdb4b2b5544b9021bf9.tar.gz |
Sync: merge r216133 through r216338 from ^/head.
Diffstat (limited to 'tools/regression/lib/msun/test-fmaxmin.c')
-rw-r--r-- | tools/regression/lib/msun/test-fmaxmin.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/regression/lib/msun/test-fmaxmin.c b/tools/regression/lib/msun/test-fmaxmin.c index f1e0a7e..fdba529 100644 --- a/tools/regression/lib/msun/test-fmaxmin.c +++ b/tools/regression/lib/msun/test-fmaxmin.c @@ -46,11 +46,12 @@ __FBSDID("$FreeBSD$"); * fpequal(NaN, NaN) is true * fpequal(+0.0, -0.0) is false */ -inline int +static inline int fpequal(long double x, long double y) { - return ((x == y && signbit(x) == signbit(y)) || (isnan(x) && isnan(y))); + return ((x == y && !signbit(x) == !signbit(y)) + || (isnan(x) && isnan(y))); } /* @@ -63,7 +64,7 @@ fpequal(long double x, long double y) feclearexcept(ALL_STD_EXCEPT); \ long double __result = func((__x), (__y)); \ if (fetestexcept(ALL_STD_EXCEPT)) { \ - fprintf(stderr, #func "(%L.20g, %L.20g) raised 0x%x\n", \ + fprintf(stderr, #func "(%.20Lg, %.20Lg) raised 0x%x\n", \ (x), (y), fetestexcept(FE_ALL_EXCEPT)); \ ok = 0; \ } \ @@ -104,7 +105,7 @@ testall_r(long double big, long double small) * in all rounding modes and with the arguments in different orders. * The input 'big' must be >= 'small'. */ -int +void testall(int testnum, long double big, long double small) { static const int rmodes[] = { |