aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mips/mpegaudiodsp_mips_fixed.c
diff options
context:
space:
mode:
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>2016-04-26 12:17:14 +0530
committerMichael Niedermayer <michael@niedermayer.cc>2016-04-26 12:27:39 +0200
commita5638dbfbafd9162a201692b4b76981180c87d34 (patch)
tree77c9adbf30deb011f078593d8362afa6ea8775db /libavcodec/mips/mpegaudiodsp_mips_fixed.c
parent666754c665713d02750fa8b882627602e589ebce (diff)
downloadffmpeg-a5638dbfbafd9162a201692b4b76981180c87d34.tar.gz
mips: add support for R6
Note:- backporting commit ad16eff64ba78d8dc98a8324640025c7cb2857f3 from head Understanding the mips32r6 and mips64r6 ISAs in the configure script is not enough. In order to have full support for MIPS R6 in FFmpeg we need to be able to build it, and for that we need to make sure we don't use incompatible assembler code which makes the build fail. Ifdefing the offending code is sufficient to fix the problem. Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/mips/mpegaudiodsp_mips_fixed.c')
-rw-r--r--libavcodec/mips/mpegaudiodsp_mips_fixed.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libavcodec/mips/mpegaudiodsp_mips_fixed.c b/libavcodec/mips/mpegaudiodsp_mips_fixed.c
index 92d260b85f..ed8c89089e 100644
--- a/libavcodec/mips/mpegaudiodsp_mips_fixed.c
+++ b/libavcodec/mips/mpegaudiodsp_mips_fixed.c
@@ -57,6 +57,9 @@
#include "libavutil/mips/asmdefs.h"
#include "libavcodec/mpegaudiodsp.h"
+#if HAVE_INLINE_ASM
+#if !HAVE_MIPS32R6 && !HAVE_MIPS64R6
+
static void ff_mpadsp_apply_window_mips_fixed(int32_t *synth_buf, int32_t *window,
int *dither_state, int16_t *samples, int incr)
{
@@ -901,8 +904,15 @@ static void ff_imdct36_blocks_mips_fixed(int *out, int *buf, int *in,
}
}
+#endif /* !HAVE_MIPS32R6 && !HAVE_MIPS64R6 */
+#endif /* HAVE_INLINE_ASM */
+
void ff_mpadsp_init_mipsdsp(MPADSPContext *s)
{
+#if HAVE_INLINE_ASM
+#if !HAVE_MIPS32R6 && !HAVE_MIPS64R6
s->apply_window_fixed = ff_mpadsp_apply_window_mips_fixed;
s->imdct36_blocks_fixed = ff_imdct36_blocks_mips_fixed;
+#endif
+#endif
}