b6891c08de
PR: 270507 Approved by: wen@ (maintainer)
16 lines
515 B
C++
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
|
|
|