3 ms·
Addition/subtraction are more likely to optimize well I think, since pointer arithmetic already uses those.
by o11c 2y ago
Addition/subtraction are more likely to optimize well I think, since pointer arithmetic already uses those.
- deleted 2y ago[deleted]
- deleted 2y ago[deleted]
- jsheard 2y agoGood point, on x86 at least the mov instruction can add/subtract a constant from the address by itself since that pattern is so common.