Hacker News new | past | comments | ask | show | jobs | submit login

And if you want an integer result, log2 can be quickly computed using the number of leading zeros.



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

Search: