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.



Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: