Browse Source

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

cherry picked from commit f784335625
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.4
Anton Khirnov Michael Niedermayer 10 years ago
parent
commit
500a0394d5
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavcodec/x86/hevc_deblock.asm

+ 4
- 0
libavcodec/x86/hevc_deblock.asm 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


Loading…
Cancel
Save