Skip to content

Commit

Permalink
Merge pull request #899 from JohanMabille/win_fix
Browse files Browse the repository at this point in the history
Hexadecimal floating points are not a C++11 feature, although most of…
  • Loading branch information
JohanMabille committed Feb 2, 2023
2 parents 68457d9 + 18b3275 commit e9d3c17
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions include/xsimd/arch/xsimd_scalar.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,15 @@ namespace xsimd
{
return ::exp10(x);
}
#elif defined(__MINGW32__)
inline float exp10(const float& x) noexcept
{
return std::exp((float)(2.30258509F * (x)));
}
inline double exp10(const double& x) noexcept
{
return std::exp((double)(2.30258509299404568402 * (x)));
}
#else
inline float exp10(const float& x) noexcept
{
Expand Down

0 comments on commit e9d3c17

Please sign in to comment.