misc: Add functions for doing popcount and power-of-two checking
Review Request #2393 - Created Sept. 10, 2014 and submitted - Latest diff uploaded
| Information | |
|---|---|
| Andreas Hansson | |
| gem5 | |
| default | |
| Reviewers | |
| Default | |
Changeset 10386:2269c571956c --------------------------- 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.
