summaryrefslogtreecommitdiff
path: root/libavcodec/x86/hevc_deblock.asm
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2014-07-19 14:18:03 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-07-22 16:13:28 +0200
commit500a0394d57a91b919f7cacd2c2578c04c80e55c (patch)
tree45e138386470c9f1158c7418fb4553bc46662d3e /libavcodec/x86/hevc_deblock.asm
parent7a4cf671170d5a141ce80c84996b4cca765572b0 (diff)
downloadffmpeg-500a0394d57a91b919f7cacd2c2578c04c80e55c.tar.gz
avcodec/x86/hevc_deblock: add %ifs to avoid "do nothing instructions"
cherry picked from commit f7843356253459e6010320292dbbc1e888a5249b Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/x86/hevc_deblock.asm')
-rw-r--r--libavcodec/x86/hevc_deblock.asm4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/x86/hevc_deblock.asm b/libavcodec/x86/hevc_deblock.asm
index 53cf13883d..25185111b3 100644
--- a/libavcodec/x86/hevc_deblock.asm
+++ b/libavcodec/x86/hevc_deblock.asm
@@ -353,12 +353,16 @@ ALIGN 16
;beta calculations
mov r11, [betaq];
+%if %1 > 8
shl r11, %1 - 8
+%endif
movd m13, r11d; beta0
add betaq, 4;
punpcklwd m13, m13
mov r12, [betaq];
+%if %1 > 8
shl r12, %1 - 8
+%endif
movd m14, r12d; beta1
punpcklwd m14, m14
pshufd m13, m14, 0; beta0, beta1