summaryrefslogtreecommitdiff
path: root/apps/codecs/Tremor/mdct.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/Tremor/mdct.c')
-rw-r--r--apps/codecs/Tremor/mdct.c15
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
43extern void mdct_butterfly_32(DATA_TYPE *x);
44extern void mdct_butterfly_generic_loop(DATA_TYPE *x1, DATA_TYPE *x2,
45 LOOKUP_T *T0, int step,
46 LOOKUP_T *Ttop);
47
48STIN 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) */
43STIN void mdct_butterfly_8(DATA_TYPE *x){ 56STIN 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
228STIN void mdct_butterflies(DATA_TYPE *x,int points,int shift) { 243STIN void mdct_butterflies(DATA_TYPE *x,int points,int shift) {
229 244
230 int stages=8-shift; 245 int stages=8-shift;