Replace BitUtils with C++20: Counting Zeroes
With the upgrade to C++20, std::countl_zero and std::countr_zero can replace these home-spun implementations from the BitUtil.h library.
This commit is contained in:
1 parent
d853da3b0b
commit
05bebee802
8 files changed
+15
-119
No files matched your search
@@ -209,7 +209,7 @@ void Interpreter::cmpl(UGeckoInstruction inst)
|
||||
|
||||
void Interpreter::cntlzwx(UGeckoInstruction inst)
|
||||
{
|
||||
rGPR[inst.RA] = u32(Common::CountLeadingZeros(rGPR[inst.RS]));
|
||||
rGPR[inst.RA] = u32(std::countl_zero(rGPR[inst.RS]));
|
||||
|
||||
if (inst.Rc)
|
||||
Helper_UpdateCR0(rGPR[inst.RA]);
|
||||
|
||||
Reference in new issue
Block a user