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

@ -2144,7 +2144,7 @@ void ppu_acontext::MULLI(ppu_opcode_t op)
}
}
gpr[op.rd] = spec_gpr::range(min, max, gpr[op.ra].tz() + utils::cnttz64(op.simm16));
gpr[op.rd] = spec_gpr::range(min, max, gpr[op.ra].tz() + std::countr_zero<u64>(op.simm16));
}
void ppu_acontext::SUBFIC(ppu_opcode_t op)