diff options
author | Peter D'Hoye <peter.dhoye@gmail.com> | 2009-07-03 22:16:11 +0000 |
---|---|---|
committer | Peter D'Hoye <peter.dhoye@gmail.com> | 2009-07-03 22:16:11 +0000 |
commit | 0d4560cb0305029fa5f0739670286176ab47cb65 (patch) | |
tree | 9899f4324664a77e6a5884fdd1541818a28a2172 /apps/plugins/pdbox/PDa/src/d_imayer_fft.c | |
parent | eabeb928ddfdbe5fc6379efb87d9522803310649 (diff) | |
download | rockbox-0d4560cb0305029fa5f0739670286176ab47cb65.tar.gz rockbox-0d4560cb0305029fa5f0739670286176ab47cb65.zip |
Accept FS #10244 by Wincent Balin: more pdbox work done for GSoC; also some keyword and line-ending fixes by me
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21626 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/d_imayer_fft.c')
-rw-r--r-- | apps/plugins/pdbox/PDa/src/d_imayer_fft.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/plugins/pdbox/PDa/src/d_imayer_fft.c b/apps/plugins/pdbox/PDa/src/d_imayer_fft.c index 05d944ed44..3e07eac49e 100644 --- a/apps/plugins/pdbox/PDa/src/d_imayer_fft.c +++ b/apps/plugins/pdbox/PDa/src/d_imayer_fft.c | |||
@@ -95,7 +95,9 @@ char mtrig_algorithm[] = "Simple"; | |||
95 | 95 | ||
96 | #define TRIG_TAB_SIZE 22 | 96 | #define TRIG_TAB_SIZE 22 |
97 | 97 | ||
98 | #ifndef ROCKBOX | ||
98 | static long long halsec[TRIG_TAB_SIZE]= {1,2,3}; | 99 | static long long halsec[TRIG_TAB_SIZE]= {1,2,3}; |
100 | #endif | ||
99 | 101 | ||
100 | #define FFTmult(x,y) mult(x,y) | 102 | #define FFTmult(x,y) mult(x,y) |
101 | 103 | ||
@@ -286,7 +288,11 @@ void imayer_ifft(int n, t_fixed *real, t_fixed *imag) | |||
286 | 288 | ||
287 | void imayer_realfft(int n, t_fixed *real) | 289 | void imayer_realfft(int n, t_fixed *real) |
288 | { | 290 | { |
291 | #ifdef ROCKBOX | ||
292 | t_fixed a,b; | ||
293 | #else | ||
289 | t_fixed a,b,c,d; | 294 | t_fixed a,b,c,d; |
295 | #endif | ||
290 | int i,j,k; | 296 | int i,j,k; |
291 | imayer_fht(real,n); | 297 | imayer_fht(real,n); |
292 | for (i=1,j=n-1,k=n/2;i<k;i++,j--) { | 298 | for (i=1,j=n-1,k=n/2;i<k;i++,j--) { |
@@ -299,7 +305,11 @@ void imayer_realfft(int n, t_fixed *real) | |||
299 | 305 | ||
300 | void imayer_realifft(int n, t_fixed *real) | 306 | void imayer_realifft(int n, t_fixed *real) |
301 | { | 307 | { |
308 | #ifdef ROCKBOX | ||
309 | t_fixed a,b; | ||
310 | #else | ||
302 | t_fixed a,b,c,d; | 311 | t_fixed a,b,c,d; |
312 | #endif | ||
303 | int i,j,k; | 313 | int i,j,k; |
304 | for (i=1,j=n-1,k=n/2;i<k;i++,j--) { | 314 | for (i=1,j=n-1,k=n/2;i<k;i++,j--) { |
305 | a = real[i]; | 315 | a = real[i]; |