Hacker News new | ask | show | jobs
by tavianator 529 days 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.

1 comments

I think I missed that one in the pile of options. That’s bizarre. I wonder if MOV from memory is like POP.