Fast Inverse Square Root Function - Seems to have been created for Quake
scribd.com
scribd.com
(PDF readers actually load faster than scribed, provided you aren't using the vanilla Adobe one with all the plugins turned on.)
Finding the original author of the function (Greg Walsh): http://www.beyond3d.com/content/articles/15/
http://betterexplained.com/articles/understanding-quakes-fas...
What you want is a function that gives the inverse of a square root.
Mathematical terminology sucks.
int inverse_square_root(int x) { return x * x; } // patent pending