3 ms·
Thanks for lifting this up!
by kchr 8y ago
Thanks for lifting this up!
- philbarr 8y agoMy favourite part of the wiki page is: i = 0x5f3759df - ( i >> 1 ); // what the fuck?
- ddtaylor 8y agoI like how they rewrite the code in different ways (type punning) and keep the "what the fuck?" comment intact.
- toolslive 8y agoThat trick was published in Graphics Gems V (1995) by Ken Turkowski.
- Someone1234 8y agoIt seems to pre-date that: https://en.wikipedia.org/wiki/Fast_inverse_square_root#History_and_investigation https://en.wikipedia.org/wiki/Fast_inverse_square_root#Histo...