Module Name: src Committed By: riastradh Date: Thu Nov 15 05:14:20 UTC 2018
Modified Files: src/tests/lib/libm: t_cbrt.c Log Message: cbrtl_powl is xfail only if long double has more bits than double. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libm/t_cbrt.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/tests/lib/libm/t_cbrt.c diff -u src/tests/lib/libm/t_cbrt.c:1.4 src/tests/lib/libm/t_cbrt.c:1.5 --- src/tests/lib/libm/t_cbrt.c:1.4 Wed Nov 7 03:59:36 2018 +++ src/tests/lib/libm/t_cbrt.c Thu Nov 15 05:14:20 2018 @@ -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 @@ ATF_TC_BODY(cbrtl_powl, tc) 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);