Changeset View
Changeset View
Standalone View
Standalone View
head/contrib/netbsd-tests/lib/libm/t_cbrt.c
Show First 20 Lines • Show All 262 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 | |||||
atf_tc_expect_fail("test fails with clang 7+ - bug 234040"); | |||||
#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 | ||||
z = powl(x[i], 1.0 / 3.0); | z = powl(x[i], 1.0 / 3.0); | ||||
#endif | #endif | ||||
▲ Show 20 Lines • Show All 96 Lines • Show Last 20 Lines |