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

That's one heck of a magic number...

The strangest one I've seen is the fast sqrt() function in SGI OpenGL source code: there's a magic step where a right bit shift is applied to a 32bit IEEE float.

(oops.. just clicked your link, looks like we're related)




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

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

Search: