mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-18 12:55:19 +00:00
Replace utils::cnttz{32,64} with std::countr_{zero,one}
Make #include <bit> mandatory.
This commit is contained in:
parent
adfc9d93c3
commit
d0c199d455
10 changed files with 15 additions and 37 deletions
|
|
@ -1,6 +1,5 @@
|
|||
#include "atomic2.hpp"
|
||||
#include "Utilities/JIT.h"
|
||||
#include "Utilities/asm.h"
|
||||
#include "Utilities/sysinfo.h"
|
||||
|
||||
//
|
||||
|
|
@ -265,7 +264,7 @@ static u64 rec_alloc()
|
|||
if (ok)
|
||||
{
|
||||
// Find lowest clear bit
|
||||
return group * 64 + utils::cnttz64(~bits, false);
|
||||
return group * 64 + std::countr_one(bits);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue