lol

Merge #271937: xsimd: refresh musl and darwin patches

...into staging-next

+13 -8
+6 -4
pkgs/development/libraries/xsimd/disable-exp10-test.patch
··· 4 4 5 5 Darwin & Musl: Disable failing exp10 test 6 6 7 - diff --git a/test/test_xsimd_api.cpp b/test/test_xsimd_api.cpp 8 - index 84b4b0b..1b29742 100644 9 7 --- a/test/test_xsimd_api.cpp 10 8 +++ b/test/test_xsimd_api.cpp 11 - @@ -515,11 +515,6 @@ struct xsimd_api_float_types_functions 9 + @@ -515,15 +515,6 @@ struct xsimd_api_float_types_functions 12 10 value_type val(2); 13 11 CHECK_EQ(extract(xsimd::exp(T(val))), std::exp(val)); 14 12 } 15 13 - void test_exp10() 16 14 - { 17 15 - value_type val(2); 16 + -#ifdef EMSCRIPTEN 17 + - CHECK_EQ(extract(xsimd::exp10(T(val))), doctest::Approx(std::pow(value_type(10), val))); 18 + -#else 18 19 - CHECK_EQ(extract(xsimd::exp10(T(val))), std::pow(value_type(10), val)); 20 + -#endif 19 21 - } 20 22 void test_exp2() 21 23 { 22 24 value_type val(2); 23 - @@ -804,11 +799,6 @@ TEST_CASE_TEMPLATE("[xsimd api | float types functions]", B, FLOAT_TYPES) 25 + @@ -813,11 +804,6 @@ TEST_CASE_TEMPLATE("[xsimd api | float types functions]", B, FLOAT_TYPES) 24 26 Test.test_exp(); 25 27 } 26 28
+7 -4
pkgs/development/libraries/xsimd/disable-polar-test.patch
··· 4 4 5 5 aarch64-Darwin: Disable failing polar test 6 6 7 - diff --git a/test/test_xsimd_api.cpp b/test/test_xsimd_api.cpp 8 - index 1b29742..03c6b4b 100644 9 7 --- a/test/test_xsimd_api.cpp 10 8 +++ b/test/test_xsimd_api.cpp 11 - @@ -652,12 +652,6 @@ struct xsimd_api_float_types_functions 9 + @@ -661,17 +661,6 @@ struct xsimd_api_float_types_functions 12 10 value_type val1(4); 13 11 CHECK_EQ(extract(xsimd::nextafter(T(val0), T(val1))), std::nextafter(val0, val1)); 14 12 } ··· 16 14 - { 17 15 - value_type val0(3); 18 16 - value_type val1(4); 17 + -#ifndef EMSCRIPTEN 19 18 - CHECK_EQ(extract(xsimd::polar(T(val0), T(val1))), std::polar(val0, val1)); 19 + -#else 20 + - CHECK_EQ(std::real(extract(xsimd::polar(T(val0), T(val1)))), doctest::Approx(std::real(std::polar(val0, val1)))); 21 + - CHECK_EQ(std::imag(extract(xsimd::polar(T(val0), T(val1)))), doctest::Approx(std::imag(std::polar(val0, val1)))); 22 + -#endif 20 23 - } 21 24 void test_pow() 22 25 { 23 26 value_type val0(2); 24 - @@ -912,11 +906,6 @@ TEST_CASE_TEMPLATE("[xsimd api | float types functions]", B, FLOAT_TYPES) 27 + @@ -931,11 +920,6 @@ TEST_CASE_TEMPLATE("[xsimd api | float types functions]", B, FLOAT_TYPES) 25 28 Test.test_nextafter(); 26 29 } 27 30