summaryrefslogtreecommitdiff
path: root/apps/plugins/pdbox/PDa/src/d_imayer_fft.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/pdbox/PDa/src/d_imayer_fft.c')
-rw-r--r--apps/plugins/pdbox/PDa/src/d_imayer_fft.c10
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
98static long long halsec[TRIG_TAB_SIZE]= {1,2,3}; 99static 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
287void imayer_realfft(int n, t_fixed *real) 289void 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
300void imayer_realifft(int n, t_fixed *real) 306void 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];