summaryrefslogtreecommitdiff
path: root/Source/UnitTests/Common/BitUtilsTest.cpp
diff options
context:
space:
mode:
authorNiels Boehm <blubberdiblub@gmail.com>2017-06-22 13:04:00 +0200
committerNiels Boehm <blubberdiblub@gmail.com>2017-06-22 20:22:53 +0200
commit56158ca176eee120f29375a286182b5dd3d7fa60 (patch)
treef3cb1cae081cff81327b0bc20655505f6c17bff7 /Source/UnitTests/Common/BitUtilsTest.cpp
parentdf82adca43db7f5820a27624ae3e2b60c9085efd (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