/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

  1. // Calculates approx. for: 1/(sqrt(number))
  2. // 4x speed of normal floating point division
  3. // Includes original comments
  4. // See: http://en.wikipedia.org/wiki/Fast_inverse_square_root
  5. float Q_rsqrt(float number);