Lurker News

Comments (491) 209 threads

Show all comments

Showing thread 7 of 209

geoah2 replies#
Fast inverse square root, sometimes referred to as Fast InvSqrt() or by the hexadecimal constant 0x5F3759DF, is an algorithm that estimates 1/√x, the reciprocal (or multiplicative inverse) of the square root of a 32-bit floating-point number x in IEEE 754 floating-point format.

https://en.m.wikipedia.org/wiki/Fast_inverse_square_root
I especially love the story around it.

jedimastert#
This is how I tell people that Computer Science can still have magic to it.