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

He is talking about the fact that compilers can turn division by a constant into multiplications and bit shifts which are much faster.

Here's an example: https://godbolt.org/z/8vG637fb5

It compiles x/6 to some mad multiplication, bitshift and add.



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

Search: