summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDelyan Kratunov <delyan.kratunov@gmail.com>2010-05-02 20:32:41 +0000
committerDelyan Kratunov <delyan.kratunov@gmail.com>2010-05-02 20:32:41 +0000
commitbc90a616c3f1425c75289a9f1d4d9f1170af33a2 (patch)
tree8b6a83739aa1a9d22d8e4337e82b89350a372c6d
parentaf466f3cbfc718c0539f2cf7743d614ecf6cd159 (diff)
downloadrockbox-bc90a616c3f1425c75289a9f1d4d9f1170af33a2.tar.gz
rockbox-bc90a616c3f1425c75289a9f1d4d9f1170af33a2.zip
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
-rw-r--r--apps/plugins/fft/math.c13
1 files changed, 0 insertions, 13 deletions
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;
-}