Y
Hacker News
new
|
ask
|
show
|
jobs
by
o11c
768 days ago
Addition/subtraction are more likely to optimize well I think, since pointer arithmetic already uses those.
1 comments
jsheard
767 days ago
Good point, on x86 at least the mov instruction can add/subtract a constant from the address by itself since that pattern is so common.
link