Skip to content

Commit

Permalink
x86: hevc_mc: remove lea in EPEL_LOAD
Browse files Browse the repository at this point in the history
The second parameter to the macro is always an immediate address,
so no lea is needed.

Signed-off-by: Michael Niedermayer <[email protected]>
  • Loading branch information
cgisquet authored and michaelni committed Feb 8, 2015
1 parent 4919b38 commit b61b9e4
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions libavcodec/x86/hevc_mc.asm
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,6 @@ QPEL_TABLE 10, 8, w, avx2
%endmacro

%macro EPEL_LOAD 4
%ifdef PIC
lea rfilterq, [%2]
%else
%define rfilterq %2
%endif
%if (%1 == 8 && %4 <= 4)
%define %%load movd
%elif (%1 == 8 && %4 <= 8) || (%1 > 8 && %4 <= 4)
Expand All @@ -244,15 +239,15 @@ QPEL_TABLE 10, 8, w, avx2
%define %%load movdqu
%endif

%%load m0, [rfilterq ]
%%load m0, [%2q ]
%ifnum %3
%%load m1, [rfilterq+ %3]
%%load m2, [rfilterq+2*%3]
%%load m3, [rfilterq+3*%3]
%%load m1, [%2q+ %3]
%%load m2, [%2q+2*%3]
%%load m3, [%2q+3*%3]
%else
%%load m1, [rfilterq+ %3q]
%%load m2, [rfilterq+2*%3q]
%%load m3, [rfilterq+r3srcq]
%%load m1, [%2q+ %3q]
%%load m2, [%2q+2*%3q]
%%load m3, [%2q+r3srcq]
%endif
%if %1 == 8
%if %4 > 8
Expand Down

0 comments on commit b61b9e4

Please sign in to comment.