diff options
| author | Sintendo <bram.speeckaert@gmail.com> | 2021-03-04 21:43:21 +0100 |
|---|---|---|
| committer | Sintendo <bram.speeckaert@gmail.com> | 2021-03-07 18:29:12 +0100 |
| commit | 530475dce8d3c4e94e0737be0dc48757a78bc475 (patch) | |
| tree | 6f071120b8ab7fd1491ca3556b930aee8a76ee76 /Source/Core/VideoCommon/CommandProcessor.cpp | |
| parent | 95698c5ae1a100cf87fa5f939480bacdf62258c6 (diff) | |
Jit64: divwx - Micro-optimize certain divisors
When the multiplier is positive (which is the most common case), we can
generate slightly better code.
- Division by 30307
Before:
49 63 C5 movsxd rax,r13d
48 69 C0 65 6B 32 45 imul rax,rax,45326B65h
4C 8B C0 mov r8,rax
48 C1 E8 3F shr rax,3Fh
49 C1 F8 2D sar r8,2Dh
44 03 C0 add r8d,eax
After:
49 63 C5 movsxd rax,r13d
4C 69 C0 65 6B 32 45 imul r8,rax,45326B65h
C1 E8 1F shr eax,1Fh
49 C1 F8 2D sar r8,2Dh
44 03 C0 add r8d,eax
Diffstat (limited to 'Source/Core/VideoCommon/CommandProcessor.cpp')
0 files changed, 0 insertions, 0 deletions
