From 4fee63b241e0dd254436bf38df8b0635b2b666d8 Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 25 Dec 2023 22:31:15 -0300 Subject: [PATCH] x86/takdsp: add missing wrappers to AVX2 functions Fixes compilation with old yasm. Signed-off-by: James Almer --- libavcodec/x86/takdsp.asm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavcodec/x86/takdsp.asm b/libavcodec/x86/takdsp.asm index d55c5f39aa..c9aec57114 100644 --- a/libavcodec/x86/takdsp.asm +++ b/libavcodec/x86/takdsp.asm @@ -90,8 +90,10 @@ cglobal tak_decorrelate_sm, 3, 3, 6, p1, p2, length INIT_XMM sse2 TAK_DECORRELATE +%if HAVE_AVX2_EXTERNAL INIT_YMM avx2 TAK_DECORRELATE +%endif %macro TAK_DECORRELATE_SF 0 cglobal tak_decorrelate_sf, 3, 3, 5, p1, p2, length, dshift, dfactor @@ -125,5 +127,7 @@ cglobal tak_decorrelate_sf, 3, 3, 5, p1, p2, length, dshift, dfactor INIT_XMM sse4 TAK_DECORRELATE_SF +%if HAVE_AVX2_EXTERNAL INIT_YMM avx2 TAK_DECORRELATE_SF +%endif