diff options
Diffstat (limited to 'apps/codecs/Tremor/mdct.c')
-rw-r--r-- | apps/codecs/Tremor/mdct.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/codecs/Tremor/mdct.c b/apps/codecs/Tremor/mdct.c index 8334cdf3c4..20abdb47f4 100644 --- a/apps/codecs/Tremor/mdct.c +++ b/apps/codecs/Tremor/mdct.c | |||
@@ -38,6 +38,19 @@ | |||
38 | #include "mdct.h" | 38 | #include "mdct.h" |
39 | #include "mdct_lookup.h" | 39 | #include "mdct_lookup.h" |
40 | 40 | ||
41 | #ifdef CPU_ARM | ||
42 | |||
43 | extern void mdct_butterfly_32(DATA_TYPE *x); | ||
44 | extern void mdct_butterfly_generic_loop(DATA_TYPE *x1, DATA_TYPE *x2, | ||
45 | LOOKUP_T *T0, int step, | ||
46 | LOOKUP_T *Ttop); | ||
47 | |||
48 | STIN void mdct_butterfly_generic(DATA_TYPE *x,int points, int step){ | ||
49 | mdct_butterfly_generic_loop(x + points, x + (points>>1), | ||
50 | sincos_lookup0, step, sincos_lookup0+1024); | ||
51 | } | ||
52 | |||
53 | #else | ||
41 | 54 | ||
42 | /* 8 point butterfly (in place) */ | 55 | /* 8 point butterfly (in place) */ |
43 | STIN void mdct_butterfly_8(DATA_TYPE *x){ | 56 | STIN void mdct_butterfly_8(DATA_TYPE *x){ |
@@ -225,6 +238,8 @@ void mdct_butterfly_generic(DATA_TYPE *x,int points, int step){ | |||
225 | }while(T>sincos_lookup0); | 238 | }while(T>sincos_lookup0); |
226 | } | 239 | } |
227 | 240 | ||
241 | #endif /* CPU_ARM */ | ||
242 | |||
228 | STIN void mdct_butterflies(DATA_TYPE *x,int points,int shift) { | 243 | STIN void mdct_butterflies(DATA_TYPE *x,int points,int shift) { |
229 | 244 | ||
230 | int stages=8-shift; | 245 | int stages=8-shift; |