mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-21 03:54:57 +00:00
JitArm64_RegCache: Mark HostReg operator== as const
Also provides operator!= for logical symmetry. We can also take the arguments by value, as the arguments are trivially copyable enum values which fit nicely into registers already.
This commit is contained in:
parent
e7538b10c6
commit
e2bb9fd147
1 changed files with 3 additions and 1 deletions
|
@ -110,7 +110,9 @@ public:
|
|||
void Lock() { m_locked = true; }
|
||||
void Unlock() { m_locked = false; }
|
||||
Arm64Gen::ARM64Reg GetReg() const { return m_reg; }
|
||||
bool operator==(const Arm64Gen::ARM64Reg& reg) { return reg == m_reg; }
|
||||
|
||||
bool operator==(Arm64Gen::ARM64Reg reg) const { return reg == m_reg; }
|
||||
bool operator!=(Arm64Gen::ARM64Reg reg) const { return !operator==(reg); }
|
||||
|
||||
private:
|
||||
Arm64Gen::ARM64Reg m_reg = Arm64Gen::INVALID_REG;
|
||||
|
|
Loading…
Add table
Reference in a new issue