summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavutil/mips/Makefile2
-rw-r--r--libavutil/mips/float_dsp_mips.c5
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 */
}