Update CountLeadingZeros().

This commit is contained in:
LDj3SNuD 2019-03-09 23:19:51 +01:00 committed by GitHub
parent a2a4650108
commit a529a2b6a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,7 +100,7 @@ namespace Ryujinx.Common
do
{
nibbleIdx -= 4;
preCount = ClzNibbleTbl[(value >> nibbleIdx) & 0b1111];
preCount = ClzNibbleTbl[(int)(value >> nibbleIdx) & 0b1111];
count += preCount;
}
while (preCount == 4);
@ -136,4 +136,4 @@ namespace Ryujinx.Common
return (value >> 32) | (value << 32);
}
}
}
}