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

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.