diff options
author | Bojan Zivkovic <bojan@mips.com> | 2012-11-21 17:00:28 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-11-22 02:57:29 +0400 |
commit | e41b518555087a9c04226cec6fd6f71920875982 (patch) | |
tree | ce7b1db596e891ed7d1446376893a243f1223ead | |
parent | bdba96e93c0cc445e3588fe27b681f8dd8415d8c (diff) |
mips: Fixing HAVE_MIPSFPU dependencies
Signed-off-by: Bojan Zivkovic <bojan@mips.com>
Reviewed-by: Vitor Sessak <vitor1001@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavutil/mips/Makefile | 2 | ||||
-rw-r--r-- | libavutil/mips/float_dsp_mips.c | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libavutil/mips/Makefile b/libavutil/mips/Makefile index d8abef4dd2..dbfa5aa341 100644 --- a/libavutil/mips/Makefile +++ b/libavutil/mips/Makefile @@ -1 +1 @@ -MIPSFPU-OBJS-$(HAVE_INLINE_ASM) += mips/float_dsp_mips.o +OBJS += mips/float_dsp_mips.o diff --git a/libavutil/mips/float_dsp_mips.c b/libavutil/mips/float_dsp_mips.c index 30ed20f0a4..8c3611d963 100644 --- a/libavutil/mips/float_dsp_mips.c +++ b/libavutil/mips/float_dsp_mips.c @@ -50,8 +50,10 @@ * Reference: libavutil/float_dsp.c */ +#include "config.h" #include "libavutil/float_dsp.h" +#if HAVE_INLINE_ASM && HAVE_MIPSFPU static void vector_fmul_mips(float *dst, const float *src0, const float *src1, int len) { @@ -102,7 +104,10 @@ static void vector_fmul_mips(float *dst, const float *src0, const float *src1, ); } } +#endif /* HAVE_INLINE_ASM && HAVE_MIPSFPU */ void ff_float_dsp_init_mips(AVFloatDSPContext *fdsp) { +#if HAVE_INLINE_ASM && HAVE_MIPSFPU fdsp->vector_fmul = vector_fmul_mips; +#endif /* HAVE_INLINE_ASM && HAVE_MIPSFPU */ } |