diff options
author | Delyan Kratunov <delyan.kratunov@gmail.com> | 2010-05-02 20:32:41 +0000 |
---|---|---|
committer | Delyan Kratunov <delyan.kratunov@gmail.com> | 2010-05-02 20:32:41 +0000 |
commit | bc90a616c3f1425c75289a9f1d4d9f1170af33a2 (patch) | |
tree | 8b6a83739aa1a9d22d8e4337e82b89350a372c6d | |
parent | af466f3cbfc718c0539f2cf7743d614ecf6cd159 (diff) | |
download | rockbox-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.c | 13 |
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 @@ | |||
1 | #include "math.h" | ||
2 | |||
3 | int64_t fsqrt64(int64_t a, unsigned int fracbits) | ||
4 | { | ||
5 | int64_t b = a/2 + (1 << fracbits); /* initial approximation */ | ||
6 | unsigned int n; | ||
7 | const unsigned int iterations = 3; /* very rough approximation */ | ||
8 | |||
9 | for (n = 0; n < iterations; ++n) | ||
10 | b = (b + (((int64_t)(a) << fracbits)/b))/2; | ||
11 | |||
12 | return b; | ||
13 | } | ||