Giacomo Travaglini has uploaded this change for review. ( https://gem5-review.googlesource.com/c/public/gem5/+/42543 )

Change subject: base: Adding static constexpr keywords to log2i
......................................................................

base: Adding static constexpr keywords to log2i

Aligning to the rest of the file

Change-Id: If1e2d120f77843f8fdd4838fdb806a804236e58a
Signed-off-by: Giacomo Travaglini <[email protected]>
---
M src/base/intmath.hh
1 file changed, 1 insertion(+), 1 deletion(-)



diff --git a/src/base/intmath.hh b/src/base/intmath.hh
index ba20177..f13e723 100644
--- a/src/base/intmath.hh
+++ b/src/base/intmath.hh
@@ -175,7 +175,7 @@
  *
  * @ingroup api_base_utils
  */
-inline int
+static constexpr int
 log2i(int value)
 {
     assert(isPowerOf2(value) && value > 0);

--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/42543
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: If1e2d120f77843f8fdd4838fdb806a804236e58a
Gerrit-Change-Number: 42543
Gerrit-PatchSet: 1
Gerrit-Owner: Giacomo Travaglini <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to