diff options
Diffstat (limited to 'test/packetmath.cpp')
-rw-r--r-- | test/packetmath.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/packetmath.cpp b/test/packetmath.cpp index 0e49d93a9..f19d72502 100644 --- a/test/packetmath.cpp +++ b/test/packetmath.cpp @@ -495,7 +495,7 @@ void packetmath() { // c++11 has std::log2 for real, but not for complex types. template <typename Scalar> Scalar log2(Scalar x) { - return Scalar(M_LOG2E) * std::log(x); + return Scalar(EIGEN_LOG2E) * std::log(x); } template <typename Scalar, typename Packet> |