10 ms·
this is not just source code, it is much better to be called magic. also love the story behind it.
by dis-sys 4y ago
this is not just source code, it is much better to be called magic.
also love the story behind it.
- lscharen 4y agoHere’s a paper that explains how to derive that magic constant and others depending on what measure of error to minimize in the sqrt approximation. http://www.lomont.org/Math/Papers/2003/InvSqrt.pdf http://www.lomont.org/Math/Papers/2003/InvSqrt.pdf