summaryrefslogtreecommitdiff
path: root/src/mem/protocol
diff options
context:
space:
mode:
authorStephan Diestelhorst <stephan.diestelhorst@arm.com>2014-04-24 17:41:26 +0100
committerStephan Diestelhorst <stephan.diestelhorst@arm.com>2014-04-24 17:41:26 +0100
commitfe98cb6be471e8187658fea950bee0ecd5bf959c (patch)
treecb9050f97b8961b796982afd5204fbdaed58a406 /src/mem/protocol
parentba98d598aef0e3823d2ded7084b1a2829ade5b73 (diff)
downloadgem5-fe98cb6be471e8187658fea950bee0ecd5bf959c.tar.xz
misc: Add functions for doing popcount and power-of-two checking
Adds two public domain algorithms for determining number of set bits and also whether a value is a power of two, uses the builtin that is available in GCC and clang for popcount.
Diffstat (limited to 'src/mem/protocol')
0 files changed, 0 insertions, 0 deletions