Changeset View
Changeset View
Standalone View
Standalone View
contrib/netbsd-tests/lib/libm/t_cbrt.c
Show First 20 Lines • Show All 263 Lines • ▼ Show 20 Lines | |||||
ATF_TC_BODY(cbrtl_powl, tc) | ATF_TC_BODY(cbrtl_powl, tc) | ||||
{ | { | ||||
const long double x[] = { 0.0, 0.005, 1.0, 99.0, 123.123, 9999.0 }; | const long double x[] = { 0.0, 0.005, 1.0, 99.0, 123.123, 9999.0 }; | ||||
const long double eps = 1.0e-15; | const long double eps = 1.0e-15; | ||||
long double y, z; | long double y, z; | ||||
size_t i; | size_t i; | ||||
#if defined(__amd64__) && defined(__clang__) && __clang_major__ >= 7 && \ | #if defined(__amd64__) && defined(__clang__) && __clang_major__ >= 7 && \ | ||||
__FreeBSD_cc_version < 1300002 | __clang_major__ < 10 && __FreeBSD_cc_version < 1300002 | ||||
atf_tc_expect_fail("test fails with clang 7+ - bug 234040"); | atf_tc_expect_fail("test fails with clang 7-9 - bug 234040"); | ||||
#endif | #endif | ||||
for (i = 0; i < __arraycount(x); i++) { | for (i = 0; i < __arraycount(x); i++) { | ||||
y = cbrtl(x[i]); | y = cbrtl(x[i]); | ||||
#ifdef __FreeBSD__ | #ifdef __FreeBSD__ | ||||
z = powl(x[i], (long double)1.0 / 3.0); | z = powl(x[i], (long double)1.0 / 3.0); | ||||
#else | #else | ||||
▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines |