diff --git a/Eigen/src/Core/MathFunctions.h b/Eigen/src/Core/MathFunctions.h index 8834f71fa..73859b0ee 100644 --- a/Eigen/src/Core/MathFunctions.h +++ b/Eigen/src/Core/MathFunctions.h @@ -696,7 +696,7 @@ bool (isfinite)(const std::complex& x) // Log base 2 for 32 bits positive integers. // Conveniently returns 0 for x==0. -int log2(int x) +inline int log2(int x) { eigen_assert(x>=0); unsigned int v(x);