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 UnitTests: use EXPECT_TRUE/EXPECT_FALSE (fixes warnings) 2017-03-24 17:26:27 -07:00
BitUtilsTest.cpp Add function testing whether a bitmask is valid. 2017-06-22 20:22:53 +02:00
BlockingLoopTest.cpp
BusyLoopTest.cpp
CMakeLists.txt Common: Move byte swapping utilities into their own header 2017-03-03 17:18:18 -05:00
CommonFuncsTest.cpp Common: Move byte swapping utilities into their own header 2017-03-03 17:18:18 -05:00
EventTest.cpp
FifoQueueTest.cpp
FixedSizeQueueTest.cpp
FlagTest.cpp
MathUtilTest.cpp
NandPathsTest.cpp
StringUtilTest.cpp StringUtil: Add StringPopBackIf UnitTests 2017-06-06 05:50:45 +01:00
SwapTest.cpp Common: Move byte swapping utilities into their own header 2017-03-03 17:18:18 -05:00
x64EmitterTest.cpp