xsimd: reduce precision to fix asin test (#354908)

Emily 5cc39d9a 4e4c5898

+17
+3
pkgs/by-name/xs/xsimd/package.nix
··· 26 26 ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ 27 27 # https://github.com/xtensor-stack/xsimd/issues/1030 28 28 ./disable-test_error_gamma.patch 29 + 30 + # https://github.com/xtensor-stack/xsimd/issues/1063 31 + ./relax-asin-precision.diff 29 32 ]; 30 33 31 34 # strictDeps raises the chance that xsimd will be able to be cross compiled
+14
pkgs/by-name/xs/xsimd/relax-asin-precision.diff
··· 1 + diff --git a/test/test_xsimd_api.cpp b/test/test_xsimd_api.cpp 2 + index f416ae9..1f8253e 100644 3 + --- a/test/test_xsimd_api.cpp 4 + +++ b/test/test_xsimd_api.cpp 5 + @@ -468,7 +468,8 @@ struct xsimd_api_float_types_functions 6 + void test_asin() 7 + { 8 + value_type val(1); 9 + - CHECK_EQ(extract(xsimd::asin(T(val))), std::asin(val)); 10 + + CHECK(extract(xsimd::asin(T(val))) 11 + + == doctest::Approx(std::asin(val)).epsilon(1e-7)); 12 + } 13 + void test_asinh() 14 + {