4 ms·
The Legendary Fast Inverse Square Root with "Voodoo Black Magic" https://medium.com/hard-mode/the-legendary-fast-inverse-square-root-e51fee3b49d9 https://mediu
by jph 4y ago
The Legendary Fast Inverse Square Root with "Voodoo Black Magic"
https://medium.com/hard-mode/the-legendary-fast-inverse-square-root-e51fee3b49d9 https://medium.com/hard-mode/the-legendary-fast-inverse-squa...
- dis-sys 4y agothis 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
- jesse__ 4y ago10/10
- KIFulgore 4y agoThat one still kills me. By Carmack's comment, surprised him too.
- deleted 4y ago[deleted]
- aliswe 4y agoa tangential question is whether ID software actually had any right to license Q3A under GPL if they had not authored this piece of code