commit | 02ed01b4bb057ba954df200238bf8e0e525cd99e | [log] [tgz] |
---|---|---|
author | Gabe Black <gabe.black@gmail.com> | Fri Mar 05 21:41:42 2021 -0800 |
committer | Gabe Black <gabe.black@gmail.com> | Sun Mar 07 07:08:40 2021 +0000 |
tree | de818d4df91fde5a1b711c48981a9978372cb514 | |
parent | 36b57f9b4e134e34e66c707e5d1d77d74ff6bde3 [diff] |
base: Make the functions in intmath.hh constexpr. These simple functions can potentially be evaluated at compile time, and marking them constexpr makes them available in more contexts. Change-Id: I9cf39c517e7c53c276883f311739c1b153ccfd44 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/42357 Maintainer: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Daniel Carvalho <odanrc@yahoo.com.br>