Skip to content
Permalink
Browse files
Merge pull request #10680 from Pokechu22/dsp-int-overflow-comment
DSPInterpreter: Fix typo in isOverflow comment
  • Loading branch information
lioncash committed May 19, 2022
2 parents a98d036 + 151119c commit 8051c21
Showing 1 changed file with 1 addition and 1 deletion.
@@ -23,7 +23,7 @@ constexpr bool isCarrySubtract(u64 val, u64 result)

constexpr bool isOverflow(s64 val1, s64 val2, s64 res)
{
// val1 > 0 and val1 > 0 yet res < 0, or val1 < 0 and val2 < 0 yet res > 0.
// val1 > 0 and val2 > 0 yet res < 0, or val1 < 0 and val2 < 0 yet res > 0.
return ((val1 ^ res) & (val2 ^ res)) < 0;
}

0 comments on commit 8051c21

Please sign in to comment.