OSDN Git Service

vfi/x86/vf_idet: fix incorrect use of paddq
authorJames Darnley <james.darnley@gmail.com>
Thu, 4 Sep 2014 22:22:04 +0000 (00:22 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 5 Sep 2014 10:49:34 +0000 (12:49 +0200)
paddq is an SSE2 instruction so it cannot be used for MMX.

This was probably just a typo because the sums are dwords anyway.

Reviewed-by: Pascal Massimino <pascal.massimino@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavfilter/x86/vf_idet.asm

index 35f0e07..14b16c5 100644 (file)
@@ -73,7 +73,7 @@ cglobal idet_filter_line, 4, 5, 0, a, b, c, width, index
 
     mova      m0, m_sum
     psrlq     m_sum, 0x20
-    paddq     m0, m_sum
+    paddd     m0, m_sum
     movd      eax, m0
     RET
 %endmacro