mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
GBA: Merged bug fix in new multiply logic
This commit is contained in:
parent
98dc779ee8
commit
e0ccc2092c
1 changed files with 2 additions and 2 deletions
|
@ -173,8 +173,8 @@ private:
|
|||
static AdderOutput adder(uint32_t a, uint32_t b, bool carry)
|
||||
{
|
||||
uint32_t output = a + b + carry;
|
||||
bool overflow = output < a || output < b;
|
||||
return { output, overflow };
|
||||
uint64_t real_output = (uint64_t)a + (uint64_t)b + (uint64_t)carry;
|
||||
return { output, output != real_output };
|
||||
}
|
||||
|
||||
static u128 u128_ror(u128 input, int shift)
|
||||
|
|
Loading…
Add table
Reference in a new issue