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 specify custom brace style to fix unions 2017-01-05 12:55:13 +01:00
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 Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
BusyLoopTest.cpp BusyLoopTest: Only run 10 times. 2016-06-27 22:06:52 +02:00
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 Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
FifoQueueTest.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
FixedSizeQueueTest.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
FlagTest.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
MathUtilTest.cpp Reformat all the things. Have fun with merge conflicts. 2016-06-24 10:43:46 +02:00
NandPathsTest.cpp IOS HLE: Add unit test for path/filename escaping 2016-11-27 22:11:05 +01:00
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 x64EmitterTest: fill cpu_info with 0x01 instead of 0xFF to make gcc happier 2016-06-27 01:55:42 +02:00