depot/third_party/nixpkgs/pkgs/development/libraries/xsimd/fix-darwin-exp10-implementation.patch
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

22 lines
620 B
Diff

diff --git i/include/xsimd/arch/xsimd_scalar.hpp w/include/xsimd/arch/xsimd_scalar.hpp
index 9066da6..7aa3b6b 100644
--- i/include/xsimd/arch/xsimd_scalar.hpp
+++ w/include/xsimd/arch/xsimd_scalar.hpp
@@ -502,16 +502,7 @@ namespace xsimd
return !(x0 == x1);
}
-#if defined(__APPLE__)
- inline float exp10(const float& x) noexcept
- {
- return __exp10f(x);
- }
- inline double exp10(const double& x) noexcept
- {
- return __exp10(x);
- }
-#elif defined(__GLIBC__)
+#if defined(__GLIBC__)
inline float exp10(const float& x) noexcept
{
return ::exp10f(x);