avcodec/x86/hevc_deblock: add %ifs to avoid "do nothing instructions"

cherry picked from commit f7843356253459e6010320292dbbc1e888a5249b
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/79/head
Anton Khirnov 11 years ago committed by Michael Niedermayer
parent 7a4cf67117
commit 500a0394d5
  1. 4
      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

Loading…
Cancel
Save