mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2025-08-07 02:32:33 -07:00
VoteAllEqual, FindLSB/MSB
This commit is contained in:
committed by
Isaac Marovitz
parent
b094d34575
commit
a71b5f1a3a
@@ -0,0 +1,5 @@
|
||||
template<typename T>
|
||||
inline T findMSBS32(T x)
|
||||
{
|
||||
return select(clz(T(0)) - (clz(x) + T(1)), T(-1), x == T(0));
|
||||
}
|
Reference in New Issue
Block a user