asimd_load_store_structures: Simplify ToExtRegD()

ExtReg has a supplied operator+, so we can make use of that instead.
This commit is contained in:
Lioncash 2020-05-16 11:26:02 -04:00
parent 2169653c50
commit 1b25e867ae

View file

@ -10,7 +10,7 @@
namespace Dynarmic::A32 {
static ExtReg ToExtRegD(size_t base, bool bit) {
return static_cast<ExtReg>(static_cast<size_t>(ExtReg::D0) + base + (bit ? 16 : 0));
return ExtReg::D0 + (base + (bit ? 16 : 0));
}
bool ArmTranslatorVisitor::v8_VLD_multiple(bool D, Reg n, size_t Vd, Imm<4> type, size_t size, size_t align, Reg m) {