From bc90a616c3f1425c75289a9f1d4d9f1170af33a2 Mon Sep 17 00:00:00 2001 From: Delyan Kratunov Date: Sun, 2 May 2010 20:32:41 +0000 Subject: FFT plugin: The 64-bit sqrt function is no longer needed git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25791 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/fft/math.c | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 apps/plugins/fft/math.c diff --git a/apps/plugins/fft/math.c b/apps/plugins/fft/math.c deleted file mode 100644 index c00804fcc8..0000000000 --- a/apps/plugins/fft/math.c +++ /dev/null @@ -1,13 +0,0 @@ -#include "math.h" - -int64_t fsqrt64(int64_t a, unsigned int fracbits) -{ - int64_t b = a/2 + (1 << fracbits); /* initial approximation */ - unsigned int n; - const unsigned int iterations = 3; /* very rough approximation */ - - for (n = 0; n < iterations; ++n) - b = (b + (((int64_t)(a) << fracbits)/b))/2; - - return b; -} -- cgit v1.2.3