Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRhishikesh Agashe <Rhishikesh.Agashe@imgtec.com>2014-06-19 11:40:09 +0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2014-06-19 12:04:51 +0400
commitf133bac6f9199ca79b6e63dabf1c9839d35d207f (patch)
treeb06890b1cee301c04b08850f2091052e0527ef73 /celt/mdct.c
parenta88d8365d42e5369777afa496b43ea88a1aa9106 (diff)
MIPS optimizations
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
Diffstat (limited to 'celt/mdct.c')
-rw-r--r--celt/mdct.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/celt/mdct.c b/celt/mdct.c
index fa5098cd..2795d90d 100644
--- a/celt/mdct.c
+++ b/celt/mdct.c
@@ -53,6 +53,11 @@
#include "mathops.h"
#include "stack_alloc.h"
+#if defined(MIPSr1_ASM)
+#include "mips/mdct_mipsr1.h"
+#endif
+
+
#ifdef CUSTOM_MODES
int clt_mdct_init(mdct_lookup *l,int N, int maxshift)
@@ -110,6 +115,7 @@ void clt_mdct_clear(mdct_lookup *l)
#endif /* CUSTOM_MODES */
/* Forward MDCT trashes the input array */
+#ifndef OVERRIDE_clt_mdct_forward
void clt_mdct_forward(const mdct_lookup *l, kiss_fft_scalar *in, kiss_fft_scalar * OPUS_RESTRICT out,
const opus_val16 *window, int overlap, int shift, int stride)
{
@@ -229,7 +235,9 @@ void clt_mdct_forward(const mdct_lookup *l, kiss_fft_scalar *in, kiss_fft_scalar
}
RESTORE_STACK;
}
+#endif /* OVERRIDE_clt_mdct_forward */
+#ifndef OVERRIDE_clt_mdct_backward
void clt_mdct_backward(const mdct_lookup *l, kiss_fft_scalar *in, kiss_fft_scalar * OPUS_RESTRICT out,
const opus_val16 * OPUS_RESTRICT window, int overlap, int shift, int stride)
{
@@ -330,3 +338,4 @@ void clt_mdct_backward(const mdct_lookup *l, kiss_fft_scalar *in, kiss_fft_scala
}
}
}
+#endif /* OVERRIDE_clt_mdct_backward */