Skip to content

Commit

Permalink
Merge pull request #1827 from nicolasnoble/lowesttarget-simplify
Browse files Browse the repository at this point in the history
Simplifying the computation of lowest-target.
  • Loading branch information
nicolasnoble authored Jan 1, 2025
2 parents 93c1bfc + ffdfcf8 commit 596f9dd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/core/r3000a.h
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,7 @@ class R3000Acpu {
uint64_t target = cycle + uint64_t(eCycle * m_interruptScales[interrupt]);
m_regs.interrupt |= (1 << interrupt);
m_regs.intTargets[interrupt] = target;
int64_t lowest = m_regs.lowestTarget - cycle;
int64_t maybeNewLowest = target - cycle;
if (maybeNewLowest < lowest) m_regs.lowestTarget = target;
if (target < m_regs.lowestTarget) m_regs.lowestTarget = target;
}

psxRegisters m_regs;
Expand Down

0 comments on commit 596f9dd

Please sign in to comment.