Replace utils::cnttz{32,64} with std::countr_{zero,one}

Make #include <bit> mandatory.
This commit is contained in:
Nekotekina 2020-04-13 15:31:41 +03:00
parent adfc9d93c3
commit d0c199d455
10 changed files with 15 additions and 37 deletions

View file

@ -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);
}
}