vp9mc/x86: simplify a few inits.

Signed-off-by: Anton Khirnov <anton@khirnov.net>
pull/244/merge
Clément Bœsch 11 years ago committed by Anton Khirnov
parent 3a09494939
commit 6ab642d69d
  1. 16
      libavcodec/x86/vp9mc.asm

@ -209,13 +209,11 @@ cglobal %1_8tap_1d_v_ %+ %%px, 4, 7, 11, dst, src, dstride, sstride, filtery, sr
mov filteryq, r5mp mov filteryq, r5mp
%define hd r4mp %define hd r4mp
%endif %endif
sub srcq, sstrideq
lea sstride3q, [sstrideq*3]
sub srcq, sstrideq
mova m6, [pw_256] mova m6, [pw_256]
sub srcq, sstrideq lea sstride3q, [sstrideq*3]
lea src4q, [srcq+sstrideq]
sub srcq, sstride3q
mova m7, [filteryq+ 0] mova m7, [filteryq+ 0]
lea src4q, [srcq+sstrideq*4]
%if ARCH_X86_64 && mmsize > 8 %if ARCH_X86_64 && mmsize > 8
mova m8, [filteryq+16] mova m8, [filteryq+16]
mova m9, [filteryq+32] mova m9, [filteryq+32]
@ -279,13 +277,11 @@ filter_v_fn avg
%macro filter_vx2_fn 1 %macro filter_vx2_fn 1
%assign %%px mmsize %assign %%px mmsize
cglobal %1_8tap_1d_v_ %+ %%px, 6, 8, 14, dst, src, dstride, sstride, h, filtery, src4, sstride3 cglobal %1_8tap_1d_v_ %+ %%px, 6, 8, 14, dst, src, dstride, sstride, h, filtery, src4, sstride3
sub srcq, sstrideq
lea sstride3q, [sstrideq*3]
sub srcq, sstrideq
mova m13, [pw_256] mova m13, [pw_256]
sub srcq, sstrideq lea sstride3q, [sstrideq*3]
lea src4q, [srcq+sstrideq]
sub srcq, sstride3q
mova m8, [filteryq+ 0] mova m8, [filteryq+ 0]
lea src4q, [srcq+sstrideq*4]
mova m9, [filteryq+16] mova m9, [filteryq+16]
mova m10, [filteryq+32] mova m10, [filteryq+32]
mova m11, [filteryq+48] mova m11, [filteryq+48]

Loading…
Cancel
Save