Home
> Uncategorized > black magic: 0x5f3759df
black magic: 0x5f3759df
The number 0x5f3759df
is a magic constant that can be used to calculate the inverse square root of a number very efficiently. See this post for a detailed explanation. Now if you come across this number (which can happen anywhere, anytime), you will say “aha, I know that one”.
Categories: Uncategorized
algorithm, hack, inverse sqrt, inverse square root, john carmack, programming, quake 3 arena
Comments (0)
Trackbacks (0)
Leave a comment
Trackback