summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNedeljko Babic <nbabic@mips.com>2012-02-25 11:13:18 +0100
committerNedeljko Babic <nbabic@mips.com>2012-04-03 15:30:09 +0200
commit9c25b39192a6d4544bffebe41b7f296bfdb6a2e7 (patch)
treef04a5aa7ef0bcf841eff92eb028f279db73a4438
parent43cd9d211af39bd216dcf3a945cb49b85293dcf0 (diff)
downloadtremor-9c25b39192a6d4544bffebe41b7f296bfdb6a2e7.tar.gz
Add ifdefs for conditional compilation of code (regarding MIPS optimization).
-rw-r--r--mdct.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/mdct.c b/mdct.c
index 6afc451..feb97b0 100644
--- a/mdct.c
+++ b/mdct.c
@@ -74,7 +74,7 @@ extern ogg_int16_t *ARM_SUFFIX(mdct_unroll_postlap)(ogg_int16_t *out,
int step);
#endif
-#ifndef _ARM_ASSEM_
+#if !defined(_ARM_ASSEM_) && !defined(MIPS_DSP)
STIN void presymmetry(DATA_TYPE *in,int n2,int step){
DATA_TYPE *aX;
DATA_TYPE *bX;
@@ -328,6 +328,7 @@ STIN void mdct_step7(DATA_TYPE *x,int n,int step){
}
#endif
+#ifndef MIPS_DSP
STIN void mdct_step8(DATA_TYPE *x, int n, int step){
LOOKUP_T *T;
LOOKUP_T *V;
@@ -442,6 +443,7 @@ void mdct_backward(int n, DATA_TYPE *in){
mdct_step8(in,n,step);
#endif
}
+#endif //MIPS_DSP
void mdct_shift_right(int n, DATA_TYPE *in, DATA_TYPE *right) {
#ifdef _ARM_ASSEM_
@@ -456,6 +458,7 @@ void mdct_shift_right(int n, DATA_TYPE *in, DATA_TYPE *right) {
#endif
}
+#ifndef MIPS_DSP
void mdct_unroll_lap(int n0,int n1,
int lW,int W,
DATA_TYPE *in,
@@ -570,3 +573,4 @@ void mdct_unroll_lap(int n0,int n1,
#endif
}
}
+#endif //MIPS_DSP