Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

x86 has encodings for shifts by 1 that are two bytes, so there's no code size advantage.


Sometimes there are "canonical forms" for these operations depending on what chip is being targeted, where the hardware can automatically break data dependencies and improve hardware-level parallelism, as long as the instruction is encoded in the right form.

I don't know that this is necessarily the reason here, but it's one possible explanation.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: