avcodec/x86/huffyuvdsp_template: Don't push+pop reg unnecessarily

All calling conventions on x64 have enough volatile GPRs.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2026-07-28 18:12:10 +02:00
parent 3928c291b7
commit 0d342f01f0

View File

@@ -26,7 +26,9 @@
add wd, wd
test wq, 2*mmsize - 1
jz %%.tomainloop
%if ARCH_X86_32
push tmpq
%endif
%%.wordloop:
sub wq, 2
%ifidn %2, add
@@ -40,7 +42,9 @@
mov [dstq+wq], tmpw
test wq, 2*mmsize - 1
jnz %%.wordloop
%if ARCH_X86_32
pop tmpq
%endif
%%.tomainloop:
%ifidn %2, add
add srcq, wq