aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/mips/acelp_vectors_mips.c
diff options
context:
space:
mode:
authorNedeljko Babic <nbabic@mips.com>2012-11-09 12:45:40 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-11-10 19:55:54 +0100
commit304a1ed1e86429eb4e20a48d887546b1072ed4da (patch)
tree26396f285e31a7cd508ec3404c4651e501518ee6 /libavcodec/mips/acelp_vectors_mips.c
parent2d71f31df23910f18b17f17fa568b13fd5dcaf1a (diff)
downloadffmpeg-304a1ed1e86429eb4e20a48d887546b1072ed4da.tar.gz
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>
Diffstat (limited to 'libavcodec/mips/acelp_vectors_mips.c')
-rw-r--r--libavcodec/mips/acelp_vectors_mips.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/mips/acelp_vectors_mips.c b/libavcodec/mips/acelp_vectors_mips.c
index 6f9390f225..e00b34eaf6 100644
--- a/libavcodec/mips/acelp_vectors_mips.c
+++ b/libavcodec/mips/acelp_vectors_mips.c
@@ -52,8 +52,10 @@
* @file
* Reference: libavcodec/acelp_vectors.c
*/
+#include "config.h"
#include "libavcodec/acelp_vectors.h"
+#if HAVE_INLINE_ASM
static void ff_weighted_vector_sumf_mips(
float *out, const float *in_a, const float *in_b,
float weight_coeff_a, float weight_coeff_b, int length)
@@ -89,8 +91,11 @@ static void ff_weighted_vector_sumf_mips(
: "$f0", "$f1", "$f2", "$f3", "$f4", "$f5"
);
}
+#endif /* HAVE_INLINE_ASM */
void ff_acelp_vectors_init_mips(ACELPVContext *c)
{
+#if HAVE_INLINE_ASM
c->weighted_vector_sumf = ff_weighted_vector_sumf_mips;
+#endif
}