mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2025-10-26 10:20:52 +08:00
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:
committed by
Michael Niedermayer
parent
2d71f31df2
commit
304a1ed1e8
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user