Comment Comment by sethaurus This is the core trick in the Fast Inverse Square Root[0], as made famous by the Quake III source code.It uses a shift (equivalent to dividing) and a subtraction in integer-land to estimate x^(-0.5) in float-land.[0]: https://en.m.wikipedia.org/wiki/Fast_inverse_square_root parent sethaurus 1 year ago
It uses a shift (equivalent to dividing) and a subtraction in integer-land to estimate x^(-0.5) in float-land.
[0]: https://en.m.wikipedia.org/wiki/Fast_inverse_square_root