[FFmpeg-devel] [PATCH] x86/dsputilenc: add missing guards to ff_pix_sum16_xop

James Almer jamrial at gmail.com
Thu May 29 22:05:57 CEST 2014


XOP support was added in Yasm 1.0.0 and Nasm 2.06, and we still 
support older versions.

Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavcodec/x86/dsputilenc.asm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/x86/dsputilenc.asm b/libavcodec/x86/dsputilenc.asm
index 2cb70f0..de36b95 100644
--- a/libavcodec/x86/dsputilenc.asm
+++ b/libavcodec/x86/dsputilenc.asm
@@ -500,8 +500,10 @@ INIT_MMX mmx
 PIX_SUM16 0, 16, 3, 0
 INIT_XMM sse2
 PIX_SUM16 6, 8,  3, 2
+%if HAVE_XOP_EXTERNAL
 INIT_XMM xop
 PIX_SUM16 5, 4,  4, 4
+%endif
 
 ; int ff_pix_norm1_mmx(uint8_t *pix, int line_size)
 ; %1 = number of xmm registers used
-- 
1.8.5.5



More information about the ffmpeg-devel mailing list