Archive

Posts Tagged ‘algorithm’

black magic: 0x5f3759df

April 5, 2013 Leave a comment

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”.

Design a site like this with WordPress.com
Get started