summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2017-01-13 17:18:10 -0500
committerLioncash <mathew1800@gmail.com>2017-01-14 11:16:02 -0500
commit0a6f0dfb74d2a5ebacd20c13452f3eb3af994417 (patch)
tree537d4cd07feba7e8fe15e89110666576f5a82053 /Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp
parent30e57cecf7cfd84d983ab19c7662e6d19f819503 (diff)
Common: Add bit utility header
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.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp')
0 files changed, 0 insertions, 0 deletions