1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-02 03:06:28 +02:00

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

cherry picked from commit f7843356253459e6010320292dbbc1e888a5249b
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Anton Khirnov 2014-07-19 14:18:03 +02:00 committed by Michael Niedermayer
parent 7a4cf67117
commit 500a0394d5

View File

@ -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