diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2010-06-02 08:34:10 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2010-06-02 08:34:10 +0000 |
commit | 30e2f42c82c6c558497aceb5ab0bea24ffeffa3a (patch) | |
tree | efdd88db6d56a941f11ee2c7d3a687287ca267ec /apps/plugins/lib/fixedpoint.h | |
parent | bbe6c5a5e20b95eff80881cee1277a0e259cbcd4 (diff) | |
download | rockbox-30e2f42c82c6c558497aceb5ab0bea24ffeffa3a.tar.gz rockbox-30e2f42c82c6c558497aceb5ab0bea24ffeffa3a.zip |
FFT Plugin: Revamp the main code to rid it of 64-bit math. Use 32-bit kiss_fft_scalar because 16-bit integers are generally a poor choice for computation on-target. Simplify display code to speed it up. Add logarithmic frequency display (need keymappings, guessed on some). On dual-core, perform FFT on COP. Add some support function to fixedpoint.c. ... and stuff.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26470 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib/fixedpoint.h')
-rw-r--r-- | apps/plugins/lib/fixedpoint.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/plugins/lib/fixedpoint.h b/apps/plugins/lib/fixedpoint.h index ef50dd0085..7cb0098129 100644 --- a/apps/plugins/lib/fixedpoint.h +++ b/apps/plugins/lib/fixedpoint.h | |||
@@ -59,6 +59,9 @@ long fp_sqrt(long a, unsigned int fracbits); | |||
59 | long fp14_cos(int val); | 59 | long fp14_cos(int val); |
60 | long fp14_sin(int val); | 60 | long fp14_sin(int val); |
61 | long fp16_log(int x); | 61 | long fp16_log(int x); |
62 | long fp16_exp(int x); | ||
63 | |||
64 | unsigned long isqrt(unsigned long x); | ||
62 | 65 | ||
63 | /* fast unsigned multiplication (16x16bit->32bit or 32x32bit->32bit, | 66 | /* fast unsigned multiplication (16x16bit->32bit or 32x32bit->32bit, |
64 | * whichever is faster for the architecture) */ | 67 | * whichever is faster for the architecture) */ |