aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2014-05-16 21:59:06 -0300
committerMichael Niedermayer <michaelni@gmx.at>2014-05-17 05:40:14 +0200
commitbe1fbc02b8c3a069d64881d02a3c0a92b273b36c (patch)
treedd0d8417ed1fc36b3b3d61264b6e187aca8d9731
parent8aac77fedebb66e33189a3aa2ef9125e287e1bf6 (diff)
downloadffmpeg-be1fbc02b8c3a069d64881d02a3c0a92b273b36c.tar.gz
x86/hevc_deblock: use movhps instead of shuffling values
Signed-off-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/x86/hevc_deblock.asm24
1 files changed, 8 insertions, 16 deletions
diff --git a/libavcodec/x86/hevc_deblock.asm b/libavcodec/x86/hevc_deblock.asm
index 72f78ac99d..1522d5e5b8 100644
--- a/libavcodec/x86/hevc_deblock.asm
+++ b/libavcodec/x86/hevc_deblock.asm
@@ -145,21 +145,17 @@ INIT_XMM sse2
punpckldq m0, m2
movq %1, m0
- punpckhqdq m0, m0
- movq %2, m0
+ movhps %2, m0
movq %3, m6
- punpckhqdq m6, m6
- movq %4, m6
+ movhps %4, m6
punpckhdq m6, m4, m5
punpckldq m4, m5
movq %5, m4
- punpckhqdq m4, m4
- movq %6, m4
+ movhps %6, m4
movq %7, m6
- punpckhqdq m6, m6
- movq %8, m6
+ movhps %8, m6
%endmacro
; in: 8 rows of 8 bytes in %1..%8
@@ -237,17 +233,13 @@ INIT_XMM sse2
punpckldq m11, m8, m9; 4, 5
punpckhdq m8, m9; 6, 7
movq %1, m0
- pshufd m0, m0, 0x4E
- movq %2, m0
+ movhps %2, m0
movq %3, m10
- pshufd m10, m10, 0x4E
- movq %4, m10
+ movhps %4, m10
movq %5, m11
- pshufd m11, m11, 0x4E
- movq %6, m11
+ movhps %6, m11
movq %7, m8
- pshufd m8, m8, 0x4E
- movq %8, m8
+ movhps %8, m8
%endmacro
; in: 8 rows of 8 words in %1..%8