Fast Inverse Square Root (2003) [pdf]
lomont.org
lomont.org
One of the best parts about this code is its initial implementation in Quake III. The comments are especially funny. It's on Wikipedia - https://en.wikipedia.org/wiki/Fast_inverse_square_root