summaryrefslogtreecommitdiff
path: root/src/common/bit_util.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* common: Add missing include to bit_util.hGravatar bunnei2021-01-211-0/+1
|
* bit_util: Unify implementations of MostSignificantBit32/MostSignificantBit64Gravatar Lioncash2021-01-211-35/+13
| | | | | | We can use the standardized CLZ facilities to perform this. This also allows us to make utilizing functions constexpr and eliminate the inclusion of an intrinsics header.
* common/bit_util: Replace CLZ/CTZ operations with standardized onesGravatar Lioncash2021-01-151-76/+0
| | | | Makes for less code that we need to maintain.
* common: Make use of [[nodiscard]] where applicableGravatar Lioncash2020-08-151-17/+17
| | | | | | 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.
* texture_cache: Optimize GetMipBlockHeight and GetMipBlockDepthGravatar Fernando Sahmkow2019-06-201-0/+44
|
* common/bit_util: Make CountLeading/CountTrailing functions have the same ↵Gravatar Lioncash2019-04-051-8/+8
| | | | | | | | 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.
* Fixes and corrections on formatting.Gravatar Fernando Sahmkow2019-03-271-1/+0
|
* Implement intrinsics CountTrailingZeroes and test it.Gravatar Fernando Sahmkow2019-03-271-12/+33
|
* Implement a MultiLevelQueueGravatar Fernando Sahmkow2019-03-271-0/+19
|
* common: Add basic bit manipulation utility function to CommonGravatar Lioncash2018-12-211-0/+61