We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ac7edf commit bcd7895Copy full SHA for bcd7895
test/test_xsimd_api.cpp
@@ -526,11 +526,9 @@ struct xsimd_api_float_types_functions
526
void test_exp10()
527
{
528
value_type val(2);
529
-#ifdef EMSCRIPTEN
+ // exp10 doesn't always have an accurate implementation, so allow for
530
+ // approximate result
531
CHECK_EQ(extract(xsimd::exp10(T(val))), doctest::Approx(std::pow(value_type(10), val)));
-#else
532
- CHECK_EQ(extract(xsimd::exp10(T(val))), std::pow(value_type(10), val));
533
-#endif
534
}
535
void test_exp2()
536
0 commit comments