aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mips/dsputil_mips.c
diff options
context:
space:
mode:
authorNedeljko Babic <nbabic@mips.com>2012-11-09 12:45:40 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-10 19:55:54 +0100
commit304a1ed1e86429eb4e20a48d887546b1072ed4da (patch)
tree26396f285e31a7cd508ec3404c4651e501518ee6 /libavcodec/mips/dsputil_mips.c
parent2d71f31df23910f18b17f17fa568b13fd5dcaf1a (diff)
downloadffmpeg-304a1ed1e86429eb4e20a48d887546b1072ed4da.tar.gz
mips: Add dependencies on HAVE_INLINE_ASM
Add dependencies on HAVE_INLINE_ASM for files and parts of code where it is necessary. Signed-off-by: Nedeljko Babic <nbabic@mips.com> Reviewed-by: Vitor Sessak <vitor1001@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/mips/dsputil_mips.c')
-rw-r--r--libavcodec/mips/dsputil_mips.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/mips/dsputil_mips.c b/libavcodec/mips/dsputil_mips.c
index e46a0a949f..76dc664e60 100644
--- a/libavcodec/mips/dsputil_mips.c
+++ b/libavcodec/mips/dsputil_mips.c
@@ -47,6 +47,7 @@
#include "config.h"
#include "libavcodec/dsputil.h"
+#if HAVE_INLINE_ASM
static void vector_fmul_window_mips(float *dst, const float *src0,
const float *src1, const float *win, int len)
{
@@ -157,8 +158,11 @@ static void vector_fmul_window_mips(float *dst, const float *src0,
);
}
}
+#endif /* HAVE_INLINE_ASM */
av_cold void ff_dsputil_init_mips( DSPContext* c, AVCodecContext *avctx )
{
+#if HAVE_INLINE_ASM
c->vector_fmul_window = vector_fmul_window_mips;
+#endif
}