mips: Fixing HAVE_MIPSFPU dependencies
authorBojan Zivkovic <bojan@mips.com>
Wed, 21 Nov 2012 13:00:28 +0000 (14:00 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 21 Nov 2012 22:57:29 +0000 (23:57 +0100)
Signed-off-by: Bojan Zivkovic <bojan@mips.com>
Reviewed-by: Vitor Sessak <vitor1001@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/mips/Makefile
libavutil/mips/float_dsp_mips.c

index d8abef4..dbfa5aa 100644 (file)
@@ -1 +1 @@
-MIPSFPU-OBJS-$(HAVE_INLINE_ASM) += mips/float_dsp_mips.o
+OBJS += mips/float_dsp_mips.o
index 30ed20f..8c3611d 100644 (file)
  * 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 */
 }