diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-06-22 18:46:52 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-06-25 13:23:12 +0100 |
commit | 8123e0901fc7faa3d7dcf80af9ed0d874f8e7a06 (patch) | |
tree | c974aee3e8eabea7a6a6cd3c2dc37e3a08d0f936 /libavcodec/x86/lpc_mmx.c | |
parent | 145a8096d53c20da7898539e521e6d4267ab2f09 (diff) | |
download | ffmpeg-8123e0901fc7faa3d7dcf80af9ed0d874f8e7a06.tar.gz |
x86: place some inline asm under #if HAVE_INLINE_ASM
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/x86/lpc_mmx.c')
-rw-r--r-- | libavcodec/x86/lpc_mmx.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/x86/lpc_mmx.c b/libavcodec/x86/lpc_mmx.c index d41c19b443..27bebe856a 100644 --- a/libavcodec/x86/lpc_mmx.c +++ b/libavcodec/x86/lpc_mmx.c @@ -23,6 +23,8 @@ #include "libavutil/cpu.h" #include "libavcodec/lpc.h" +#if HAVE_INLINE_ASM + static void lpc_apply_welch_window_sse2(const int32_t *data, int len, double *w_data) { @@ -136,12 +138,16 @@ static void lpc_compute_autocorr_sse2(const double *data, int len, int lag, } } +#endif /* HAVE_INLINE_ASM */ + av_cold void ff_lpc_init_x86(LPCContext *c) { 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 */ } |