mirror of
https://github.com/Ryubing/Ryujinx.git
synced 2025-11-21 17:50:52 -05:00
VoteAllEqual, FindLSB/MSB
This commit is contained in:
committed by
Evan Husted
parent
fac2cbbbbf
commit
a1ab7fe6a2
@@ -0,0 +1,5 @@
|
||||
template<typename T>
|
||||
inline T findLSB(T x)
|
||||
{
|
||||
return select(ctz(x), T(-1), x == T(0));
|
||||
}
|
||||
Reference in New Issue
Block a user