From 4315b368d384e64705a62fd13544c04c01c027e2 Mon Sep 17 00:00:00 2001 From: Giacomo Travaglini Date: Mon, 8 Mar 2021 15:07:04 +0000 Subject: [PATCH] base: Adding static constexpr keywords to log2i Aligning to the rest of the file Change-Id: If1e2d120f77843f8fdd4838fdb806a804236e58a Signed-off-by: Giacomo Travaglini Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/42543 Reviewed-by: Gabe Black Maintainer: Gabe Black Tested-by: kokoro --- src/base/intmath.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);