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

I think the best paper that explains the magic number (0x5f3759df) is http://www.lomont.org/Math/Papers/2003/InvSqrt.pdf

Lomont traces the history of the algorithm and the possible way that the magic number was derived - including more magic numbers (0x5f375a86)



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

Search: