3 ms·
> Wait a sec, isn’t this backwards? No, if you push and pop RCX it's fast again. I mentioned this in the blog post, `mov rcx, 1` is slow but `mov rcx, 1; push
by tavianator 2y ago
> Wait a sec, isn’t this backwards?
No, if you push and pop RCX it's fast again. I mentioned this in the blog post, `mov rcx, 1` is slow but `mov rcx, 1; push rcx; pop rcx` is fast.
- amluto 2y agoI think I missed that one in the pile of options. That’s bizarre. I wonder if MOV from memory is like POP.
- deleted 2y ago[deleted]