freebsd-ports/devel/py-pythran/files/patch-pythran_xsimd_arch_xsimd__scalar.hpp
Yuri Victorovich b6891c08de devel/py-pythran: Update 0.12.0 → 0.12.1
PR:	270507
Approved by:	wen@ (maintainer)
2023-04-23 22:40:25 -07:00

16 lines
515 B
C++

--- pythran/xsimd/arch/xsimd_scalar.hpp.orig 2023-04-02 16:37:10 UTC
+++ pythran/xsimd/arch/xsimd_scalar.hpp
@@ -444,11 +444,11 @@ namespace xsimd
#if defined(_GNU_SOURCE) && !defined(__APPLE__) && !defined(__MINGW32__) && !defined(__ANDROID__)
inline float exp10(const float& x) noexcept
{
- return ::exp10f(x);
+ return ::expf(x*::logf(10));
}
inline double exp10(const double& x) noexcept
{
- return ::exp10(x);
+ return ::exp(x*::log(10));
}
#endif