diff options
| author | Sintendo <bram.speeckaert@gmail.com> | 2021-11-02 23:52:21 +0100 |
|---|---|---|
| committer | Sintendo <bram.speeckaert@gmail.com> | 2021-11-03 21:01:41 +0100 |
| commit | dfb32040bf2550a6592621544e306fad9c4f1dcb (patch) | |
| tree | 47e8735d9f2ff5ad3e805b7e2bccc55d4c50ee6b /Source/Core/VideoCommon/TextureCacheBase.cpp | |
| parent | f18f6cd0a214ca661dacfacc3f1402c6a7450dc5 (diff) | |
Jit64: divwx - Micro-optimize division by 2
Prefer using eax to isolate the sign bit. This saves a byte when the
destination ends up as r8-15, because those require a REX prefix.
Before:
41 8B C5 mov eax,r13d
41 C1 ED 1F shr r13d,1Fh
44 03 E8 add r13d,eax
41 D1 FD sar r13d,1
After:
41 8B C5 mov eax,r13d
C1 E8 1F shr eax,1Fh
44 03 E8 add r13d,eax
41 D1 FD sar r13d,1
Diffstat (limited to 'Source/Core/VideoCommon/TextureCacheBase.cpp')
0 files changed, 0 insertions, 0 deletions
