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

If you're using floating point, x * 0.5 is faster



Given that the question indicates that bit-shifting x would result in a valid answer, I think we can rule out floating point.




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

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

Search: