mips: Add dependencies on HAVE_INLINE_ASM

Add dependencies on HAVE_INLINE_ASM for files and parts of code
 where it is necessary.

Signed-off-by: Nedeljko Babic <nbabic@mips.com>
Reviewed-by: Vitor Sessak <vitor1001@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Nedeljko Babic
2012-11-09 12:45:40 +01:00
committed by Michael Niedermayer
parent 2d71f31df2
commit 304a1ed1e8
11 changed files with 38 additions and 4 deletions

View File

@@ -51,8 +51,10 @@
* @file
* Reference: libavcodec/celp_math.c
*/
#include "config.h"
#include "libavcodec/celp_math.h"
#if HAVE_INLINE_ASM
static float ff_dot_productf_mips(const float* a, const float* b,
int length)
{
@@ -77,8 +79,11 @@ static float ff_dot_productf_mips(const float* a, const float* b,
);
return sum;
}
#endif /* HAVE_INLINE_ASM */
void ff_celp_math_init_mips(CELPMContext *c)
{
#if HAVE_INLINE_ASM
c->dot_productf = ff_dot_productf_mips;
#endif
}