From 0d342f01f03530e37e23372467c8d3b9623a19d0 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Tue, 28 Jul 2026 18:12:10 +0200 Subject: [PATCH] avcodec/x86/huffyuvdsp_template: Don't push+pop reg unnecessarily All calling conventions on x64 have enough volatile GPRs. Signed-off-by: Andreas Rheinhardt --- libavcodec/x86/huffyuvdsp_template.asm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/x86/huffyuvdsp_template.asm b/libavcodec/x86/huffyuvdsp_template.asm index 89721f4ec3..2fd94d3071 100644 --- a/libavcodec/x86/huffyuvdsp_template.asm +++ b/libavcodec/x86/huffyuvdsp_template.asm @@ -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