Commit e41b5185 authored by Bojan Zivkovic's avatar Bojan Zivkovic Committed by Michael Niedermayer

mips: Fixing HAVE_MIPSFPU dependencies

Signed-off-by: 's avatarBojan Zivkovic <bojan@mips.com>
Reviewed-by: 's avatarVitor Sessak <vitor1001@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bdba96e9
MIPSFPU-OBJS-$(HAVE_INLINE_ASM) += mips/float_dsp_mips.o OBJS += mips/float_dsp_mips.o
...@@ -50,8 +50,10 @@ ...@@ -50,8 +50,10 @@
* Reference: libavutil/float_dsp.c * Reference: libavutil/float_dsp.c
*/ */
#include "config.h"
#include "libavutil/float_dsp.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, static void vector_fmul_mips(float *dst, const float *src0, const float *src1,
int len) int len)
{ {
...@@ -102,7 +104,10 @@ static void vector_fmul_mips(float *dst, const float *src0, const float *src1, ...@@ -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) { void ff_float_dsp_init_mips(AVFloatDSPContext *fdsp) {
#if HAVE_INLINE_ASM && HAVE_MIPSFPU
fdsp->vector_fmul = vector_fmul_mips; fdsp->vector_fmul = vector_fmul_mips;
#endif /* HAVE_INLINE_ASM && HAVE_MIPSFPU */
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment