/Fast_Inv_Sqrt/C/jcla1/fast_inv_sqrt.h
https://github.com/andrewcyu/Algorithm-Implementations · C++ Header · 5 lines · 1 code · 0 blank · 4 comment · 0 complexity · 69965870a58d1dfaede616e1f6f2e3ac MD5 · raw file
- // Calculates approx. for: 1/(sqrt(number))
- // 4x speed of normal floating point division
- // Includes original comments
- // See: http://en.wikipedia.org/wiki/Fast_inverse_square_root
- float Q_rsqrt(float number);