Closed dplassgit closed 8 months ago
It's only faster if temps are not used, but they are.
On x64, an INC
is 1 tick and an ADD
is also one tick.
Assuming a
is a parameter, a++
maps to inc ECX
. Times 3 is 3 ticks
a=a+3
maps to
mov EBX, ECX
add EBX, 3
mov ECX, EBX
which is 3 ticks. I want to get this down to one tick: add ECX, 3
which is issue #178
Since issue #178 is closed, this can proceed.
is probably faster as