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>
This commit is contained in:
Bojan Zivkovic 2012-11-21 14:00:28 +01:00 committed by Michael Niedermayer
parent bdba96e93c
commit e41b518555
2 changed files with 6 additions and 1 deletions

View File

@ -1 +1 @@
MIPSFPU-OBJS-$(HAVE_INLINE_ASM) += mips/float_dsp_mips.o OBJS += mips/float_dsp_mips.o

View File

@ -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,
); );
} }
} }
#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 */
} }