[FFmpeg-cvslog] x86/dsputilenc: use HADDD in ff_sse16_sse2

James Almer git at videolan.org
Tue May 27 15:20:03 CEST 2014


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Tue May 27 04:27:37 2014 -0300| [58632070866a529913355df1d9c7cc71fa91ffde] | committer: Michael Niedermayer

x86/dsputilenc: use HADDD in ff_sse16_sse2

Signed-off-by: James Almer <jamrial at gmail.com>
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=58632070866a529913355df1d9c7cc71fa91ffde
---

 libavcodec/x86/dsputilenc.asm |    7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/libavcodec/x86/dsputilenc.asm b/libavcodec/x86/dsputilenc.asm
index ba8a177..6269532 100644
--- a/libavcodec/x86/dsputilenc.asm
+++ b/libavcodec/x86/dsputilenc.asm
@@ -326,12 +326,7 @@ cglobal sse16, 5, 5, 8
     dec       r4
     jnz .next2lines
 
-    mova      m1, m7
-    psrldq    m7, 8          ; shift hi qword to lo
-    paddd     m7, m1
-    mova      m1, m7
-    psrldq    m7, 4          ; shift hi dword to lo
-    paddd     m7, m1
+    HADDD     m7, m1
     movd     eax, m7         ; return value
     RET
 



More information about the ffmpeg-cvslog mailing list