diff options
| author | Sintendo <bram.speeckaert@gmail.com> | 2019-05-29 00:47:12 +0200 |
|---|---|---|
| committer | Sintendo <bram.speeckaert@gmail.com> | 2019-05-29 01:04:09 +0200 |
| commit | c84f34bd500bbf201b68ae8520f3b3039d2f3f50 (patch) | |
| tree | 99b79a3c9ee219902ab35f5116d313536bc89fad /Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp | |
| parent | 992c8bfc4e2394ad5786f5116f5e62ae595b5c44 (diff) | |
x64Emitter: Short MOVs for 32bit immediates
Prior to this commit, the emitter would emit a 7-byte instruction when
loading a 32-bit immediate to a 64-bit register.
0: 48 c7 c0 ff ff ff 7f mov rax,0x7fffffff
With this change, it will check if it can instead emit a load to a
32-bit register, which takes only 5 or 6 bytes.
0: b8 ff ff ff 7f mov eax,0x7fffffff
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/DInput/DInputKeyboardMouse.cpp')
0 files changed, 0 insertions, 0 deletions
