diff --git a/src/base/intmath.hh b/src/base/intmath.hh index 85ee52544d..ff5753da09 100644 --- a/src/base/intmath.hh +++ b/src/base/intmath.hh @@ -155,7 +155,7 @@ roundDown(const T& val, const U& align) * * @ingroup api_base_utils */ -inline int +static constexpr int log2i(int value) { assert(isPowerOf2(value) && value > 0);