aboutsummaryrefslogtreecommitdiff
path: root/src/common/bit_util.h
AgeCommit message (Collapse)Author
2021-01-15common/bit_util: Replace CLZ/CTZ operations with standardized onesLioncash
Makes for less code that we need to maintain.
2020-08-15common: Make use of [[nodiscard]] where applicableLioncash
Now that clang-format makes [[nodiscard]] attributes format sensibly, we can apply them to several functions within the common library to allow the compiler to complain about any misuses of the functions.
2019-06-20texture_cache: Optimize GetMipBlockHeight and GetMipBlockDepthFernando Sahmkow
2019-04-05common/bit_util: Make CountLeading/CountTrailing functions have the same ↵Lioncash
return types Makes the return type consistently uniform (like the intrinsics we're wrapping). This also conveniently silences a truncation warning within the kernel multi_level_queue.
2019-03-27Fixes and corrections on formatting.Fernando Sahmkow
2019-03-27Implement intrinsics CountTrailingZeroes and test it.Fernando Sahmkow
2019-03-27Implement a MultiLevelQueueFernando Sahmkow
2018-12-21common: Add basic bit manipulation utility function to CommonLioncash