summaryrefslogtreecommitdiff
path: root/libavcodec/x86/lpc.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2012-09-04 08:30:16 +0200
committerDiego Biurrun <diego@biurrun.de>2012-09-07 18:16:04 +0200
commit1169f0d0afc0454633cfcfad73643f0458521c67 (patch)
treec58d3888c6bbd2e4eb014ddfce38bf9044d2312b /libavcodec/x86/lpc.c
parent8cb7ed5562c438388b1dd7dc7d10c26f54c740b5 (diff)
x86: more specific checks for availability of required assembly capabilities
Diffstat (limited to 'libavcodec/x86/lpc.c')
-rw-r--r--libavcodec/x86/lpc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/x86/lpc.c b/libavcodec/x86/lpc.c
index 82f77612f2..b8c77e28f4 100644
--- a/libavcodec/x86/lpc.c
+++ b/libavcodec/x86/lpc.c
@@ -24,7 +24,7 @@
#include "libavutil/internal.h"
#include "libavcodec/lpc.h"
-#if HAVE_INLINE_ASM
+#if HAVE_SSE2_INLINE
static void lpc_apply_welch_window_sse2(const int32_t *data, int len,
double *w_data)
@@ -139,16 +139,16 @@ static void lpc_compute_autocorr_sse2(const double *data, int len, int lag,
}
}
-#endif /* HAVE_INLINE_ASM */
+#endif /* HAVE_SSE2_INLINE */
av_cold void ff_lpc_init_x86(LPCContext *c)
{
+#if HAVE_SSE2_INLINE
int mm_flags = av_get_cpu_flags();
-#if HAVE_INLINE_ASM
if (mm_flags & (AV_CPU_FLAG_SSE2|AV_CPU_FLAG_SSE2SLOW)) {
c->lpc_apply_welch_window = lpc_apply_welch_window_sse2;
c->lpc_compute_autocorr = lpc_compute_autocorr_sse2;
}
-#endif /* HAVE_INLINE_ASM */
+#endif /* HAVE_SSE2_INLINE */
}