asimd_load_store_structures: Simplify ToExtRegD()
ExtReg has a supplied operator+, so we can make use of that instead.
This commit is contained in:
parent
2169653c50
commit
1b25e867ae
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue