dolphin/Source/UnitTests/Common
Niels Boehm df82adca43 Add function testing whether a bitmask is valid.
This one verifies bitmasks where low bits are set to 1 (hence the name).
Any stray 0 among the lower ones or any stray 1 among the higher zeros
renders the mask invalid.

The edge cases of all zeros and all ones are considered valid masks.

It uses an efficient implementation. It's the counterpart of
https://graphics.stanford.edu/~seander/bithacks.html#DetermineIfPowerOf2
2017-06-22 20:22:53 +02:00
..
BitFieldTest.cpp
BitSetTest.cpp
BitUtilsTest.cpp Add function testing whether a bitmask is valid. 2017-06-22 20:22:53 +02:00
BlockingLoopTest.cpp
BusyLoopTest.cpp
CMakeLists.txt
CommonFuncsTest.cpp
EventTest.cpp
FifoQueueTest.cpp
FixedSizeQueueTest.cpp
FlagTest.cpp
MathUtilTest.cpp
NandPathsTest.cpp
StringUtilTest.cpp
SwapTest.cpp
x64EmitterTest.cpp