summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
diff options
context:
space:
mode:
authordok.slade <dok.slade@gmail.com>2026-11-10 22:34:50 +0000
committerdok.slade <dok.slade@gmail.com>2026-11-13 00:17:30 +0100
commit95d7468be5a9d9407310df48df7a6711573a9a7e (patch)
tree7ad4e8343397fa024519d3cfbd0077c4f56771a8 /Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp
parent1f7ead58bcd00228b906118be0b3988b1972c43e (diff)
Interpreter: Share add/subtract code in a Helper_Add template
All PowerPC add and subtract instructions compute a + b + carry_in, with ~rA as a for the subtract forms. Helper_Add computes this sum in 64 bits and writes rD. Depending on its template parameters, it also writes CA (bit 32 of the sum), and OV and CR0 as requested by the OE and Rc bits. This replaces the carry and overflow code of each instruction and HasAddOverflowed. There is no behavior change. With GCC -O3 on x86-64, each instruction compiles to the same number of host instructions as before, or one fewer.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/DInput/DInputJoystick.cpp')
0 files changed, 0 insertions, 0 deletions