mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
0a6f0dfb74
This attempts to make some bit arithmetic more self-documenting and also make it easier during review to identify potential off-by-one errors by making it possible to just specify which bits are being extracted. Functions both support the case where bits being extracted can vary and fixed bit extraction. In the case the bits are fixed, compile-time asserts are present to prevent accidental API usage at compile-time. e.g. Instead of shifting and masking to get bits 10 to 15, Common::ExtractBits<10, 15>(value) can just be done instead. |
||
---|---|---|
.. | ||
BitFieldTest.cpp | ||
BitSetTest.cpp | ||
BitUtilsTest.cpp | ||
BlockingLoopTest.cpp | ||
BusyLoopTest.cpp | ||
CMakeLists.txt | ||
CommonFuncsTest.cpp | ||
EventTest.cpp | ||
FifoQueueTest.cpp | ||
FixedSizeQueueTest.cpp | ||
FlagTest.cpp | ||
MathUtilTest.cpp | ||
NandPathsTest.cpp | ||
StringUtilTest.cpp | ||
x64EmitterTest.cpp |