diff options
| author | Niels Boehm <blubberdiblub@gmail.com> | 2017-06-22 13:04:00 +0200 |
|---|---|---|
| committer | Niels Boehm <blubberdiblub@gmail.com> | 2017-06-22 20:22:53 +0200 |
| commit | 56158ca176eee120f29375a286182b5dd3d7fa60 (patch) | |
| tree | f3cb1cae081cff81327b0bc20655505f6c17bff7 /Source/UnitTests/Common/BitUtilsTest.cpp | |
| parent | df82adca43db7f5820a27624ae3e2b60c9085efd (diff) | |
Replace MMU mask tests with dedicated function.
The efficient function (that is nearly the same as
https://graphics.stanford.edu/~seander/bithacks.html#DetermineIfPowerOf2)
replaces one loop based instance (which also reused the xx variable
afterwards, whereas it should have used htabmask instead) and one
instance using the population count a.k.a. Hamming weigth.
Diffstat (limited to 'Source/UnitTests/Common/BitUtilsTest.cpp')
0 files changed, 0 insertions, 0 deletions
