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

And if it is not a power of 2, the % operation will be anything but fast. If a size not a power of 2 is strictly required, a simple increment and compare is almost certainly faster.


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

Search: