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. |
||
---|---|---|
.. | ||
Common | ||
Core | ||
TestUtils | ||
VideoCommon | ||
CMakeLists.txt | ||
UnitTests.vcxproj | ||
UnitTests.vcxproj.user |