mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2025-01-17 22:25:37 +00:00
CPU/Interpreter: Remove redundant comparison in divu instruction
This commit is contained in:
parent
0f1f5a4f49
commit
dbf651e493
|
@ -874,7 +874,7 @@ void Core::ExecuteInstruction()
|
|||
if (denom == 0)
|
||||
{
|
||||
// divide by zero
|
||||
m_regs.lo = (num >= 0) ? UINT32_C(0xFFFFFFFF) : UINT32_C(1);
|
||||
m_regs.lo = UINT32_C(0xFFFFFFFF);
|
||||
m_regs.hi = static_cast<u32>(num);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue