Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libm cbrtl_powl is xfail only if long double has m...



details:   https://anonhg.NetBSD.org/src/rev/8a6ec1fdeb2b
branches:  trunk
changeset: 445857:8a6ec1fdeb2b
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Nov 15 05:14:20 2018 +0000

description:
cbrtl_powl is xfail only if long double has more bits than double.

diffstat:

 tests/lib/libm/t_cbrt.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 34adf3aed4ed -r 8a6ec1fdeb2b tests/lib/libm/t_cbrt.c
--- a/tests/lib/libm/t_cbrt.c   Thu Nov 15 04:59:02 2018 +0000
+++ b/tests/lib/libm/t_cbrt.c   Thu Nov 15 05:14:20 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_cbrt.c,v 1.4 2018/11/07 03:59:36 riastradh Exp $ */
+/* $NetBSD: t_cbrt.c,v 1.5 2018/11/15 05:14:20 riastradh Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_cbrt.c,v 1.4 2018/11/07 03:59:36 riastradh Exp $");
+__RCSID("$NetBSD: t_cbrt.c,v 1.5 2018/11/15 05:14:20 riastradh Exp $");
 
 #include <atf-c.h>
 #include <float.h>
@@ -285,7 +285,9 @@
        const long double eps = 2*LDBL_EPSILON;
        size_t i;
 
+#if LDBL_MANT_DIG > DBL_MANT_DIG
        atf_tc_expect_fail("powl not yet implemented with full precision");
+#endif
        for (i = 0; i < __arraycount(x); i++) {
                long double x_cbrt = cbrtl(x[i]);
                long double x_pow13 = powl(x[i], 1.0 / 3.0);



Home | Main Index | Thread Index | Old Index