History

x86: hevc_mc: remove lea in EPEL_LOAD

The second parameter to the macro is always an immediate address, so no lea is needed.

Christophe Gisquet committed 11 years ago

Commit b61b9e41 parent 4919b381 file · +7 −12Browse files

Unified · Split

libavcodec/x86/hevc_mc.asm+7−12
@@ -231,11 +231,6 @@ QPEL_TABLE 10, 8, w, avx2 · 230 unmodified lines
231231 %endmacro
232232
233233 %macro EPEL_LOAD 4
234−%ifdef PIC
235− lea rfilterq, [%2]
236−%else
237− %define rfilterq %2
238−%endif
239234 %if (%1 == 8 && %4 <= 4)
240235 %define %%load movd
241236 %elif (%1 == 8 && %4 <= 8) || (%1 > 8 && %4 <= 4)
@@ -244,15 +239,15 @@ QPEL_TABLE 10, 8, w, avx2 · 2 unmodified lines
244239 %define %%load movdqu
245240 %endif
246241
247− %%load m0, [rfilterq ]
242+ %%load m0, [%2q ]
248243 %ifnum %3
249− %%load m1, [rfilterq+ %3]
250− %%load m2, [rfilterq+2*%3]
251− %%load m3, [rfilterq+3*%3]
244+ %%load m1, [%2q+ %3]
245+ %%load m2, [%2q+2*%3]
246+ %%load m3, [%2q+3*%3]
252247 %else
253− %%load m1, [rfilterq+ %3q]
254− %%load m2, [rfilterq+2*%3q]
255− %%load m3, [rfilterq+r3srcq]
248+ %%load m1, [%2q+ %3q]
249+ %%load m2, [%2q+2*%3q]
250+ %%load m3, [%2q+r3srcq]
256251 %endif
257252 %if %1 == 8
258253 %if %4 > 8

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t