diff options
author | Stephan Diestelhorst <stephan.diestelhorst@arm.com> | 2014-04-24 17:41:26 +0100 |
---|---|---|
committer | Stephan Diestelhorst <stephan.diestelhorst@arm.com> | 2014-04-24 17:41:26 +0100 |
commit | fe98cb6be471e8187658fea950bee0ecd5bf959c (patch) | |
tree | cb9050f97b8961b796982afd5204fbdaed58a406 /src/mem/protocol | |
parent | ba98d598aef0e3823d2ded7084b1a2829ade5b73 (diff) | |
download | gem5-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