From 8b3be4907da2cbf47ec15734b7f364e6e66bf4c3 Mon Sep 17 00:00:00 2001 From: Gael Guennebaud Date: Thu, 18 Sep 2014 10:53:53 +0200 Subject: [PATCH] log2(int) must be inlined. --- Eigen/src/Core/MathFunctions.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);