dolphin/Source/Core
Sintendo 0637a7ec59 Jit64: divwx - Optimize power-of-two divisors
Power-of-two divisors can be done more elegantly, so handle them
separately.

- Division by 4
Before:
41 BD 04 00 00 00    mov         r13d,4
41 8B C0             mov         eax,r8d
45 85 ED             test        r13d,r13d
74 0D                je          overflow
3D 00 00 00 80       cmp         eax,80000000h
75 0E                jne         normal_path
41 83 FD FF          cmp         r13d,0FFFFFFFFh
75 08                jne         normal_path
overflow:
C1 F8 1F             sar         eax,1Fh
44 8B E8             mov         r13d,eax
EB 07                jmp         done
normal_path:
99                   cdq
41 F7 FD             idiv        eax,r13d
44 8B E8             mov         r13d,eax
done:

After:
45 85 C0             test        r8d,r8d
45 8D 68 03          lea         r13d,[r8+3]
45 0F 49 E8          cmovns      r13d,r8d
41 C1 FD 02          sar         r13d,2
2021-03-07 18:29:12 +01:00
..
AudioCommon msbuild: bundle all dolphin "core" code into single library 2021-01-27 14:29:49 -08:00
Common Merge pull request #9559 from iwubcode/gdb-stub-raii 2021-03-05 05:28:31 -05:00
Core Jit64: divwx - Optimize power-of-two divisors 2021-03-07 18:29:12 +01:00
DiscIO IOS: Use less ambiguous names for classes 2021-02-12 21:40:31 +01:00
DolphinNoGUI Merge pull request #9492 from nolange/fix_norandr_build 2021-03-01 11:36:39 +01:00
DolphinQt BreakpointWidget: Use QSignalBlocker 2021-03-05 13:35:33 +04:00
InputCommon Merge pull request #9539 from iwubcode/dynamic_input_tex_more_optimizations 2021-03-02 02:53:22 +01:00
MacUpdater
UICommon Merge pull request #9492 from nolange/fix_norandr_build 2021-03-01 11:36:39 +01:00
UpdaterCommon msbuild: bundle all dolphin "core" code into single library 2021-01-27 14:29:49 -08:00
VideoBackends Software: Implement points 2021-02-13 15:59:40 -08:00
VideoCommon VideoCommon: Join the prefetch thread before clearing to avoid a potential crash that can occur by multiple threads touching a single resource 2021-02-11 19:18:38 -06:00
WinUpdater msbuild: bundle all dolphin "core" code into single library 2021-01-27 14:29:49 -08:00
CMakeLists.txt
DolphinLib.ARM64.props msbuild: bundle all dolphin "core" code into single library 2021-01-27 14:29:49 -08:00
DolphinLib.props Common: Add RAII object that initializes and cleans up winsock 2021-03-04 13:44:12 -06:00
DolphinLib.vcxproj JitCommon: Signed 32-bit division magic constants 2021-03-07 18:27:36 +01:00
DolphinLib.vcxproj.user msbuild: bundle all dolphin "core" code into single library 2021-01-27 14:29:49 -08:00
DolphinLib.x64.props msbuild: bundle all dolphin "core" code into single library 2021-01-27 14:29:49 -08:00