diff options
| author | Bram Speeckaert <bram.speeckaert@gmail.com> | 2022-11-01 21:06:43 +0100 |
|---|---|---|
| committer | Bram Speeckaert <bram.speeckaert@gmail.com> | 2022-11-02 21:52:44 +0100 |
| commit | c349875cdca6ee5abc2f78d1e0c3a09c8716256f (patch) | |
| tree | 75cd70cf1dc7d4e7dad30a436d5980f53b0dd290 /Source/Core/VideoCommon/FramebufferManager.cpp | |
| parent | 3aaf1a2b8bad78d648c15cd68c24ce6aa362e3e6 (diff) | |
JitArm64: MultiplyImmediate - Handle 2^n + 1
By taking advantage of ARM64's ability to shift an input register by any
amount, we can calculate multiplication by a number that is one more
than a power of two with a single instruction.
Before:
0x52800838 mov w24, #0x41
0x1b187f7b mul w27, w27, w24
After:
0x0b1b1b7b add w27, w27, w27, lsl #6
Diffstat (limited to 'Source/Core/VideoCommon/FramebufferManager.cpp')
0 files changed, 0 insertions, 0 deletions
