diff options
author | James Almer <jamrial@gmail.com> | 2024-02-01 10:23:42 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-02-01 10:23:42 -0300 |
commit | 78a7927df78001baa6c17828c7f57105b9816458 (patch) | |
tree | 21864ed1365e91ac58db55d26569d0f9805baae8 /libavcodec/x86/vvc | |
parent | 692e32a7dc1eaafd7598f6214dad340367d0ab2a (diff) | |
download | ffmpeg-78a7927df78001baa6c17828c7f57105b9816458.tar.gz |
x86/vvc/vvc_mc: wrap the entire file in x86_64 and AVX2 checks
Fixes compilation with old yasm.
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/x86/vvc')
-rw-r--r-- | libavcodec/x86/vvc/vvc_mc.asm | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/libavcodec/x86/vvc/vvc_mc.asm b/libavcodec/x86/vvc/vvc_mc.asm index fab1f57ba5..30aa97c65a 100644 --- a/libavcodec/x86/vvc/vvc_mc.asm +++ b/libavcodec/x86/vvc/vvc_mc.asm @@ -31,6 +31,10 @@ SECTION_RODATA 32 +%if ARCH_X86_64 + +%if HAVE_AVX2_EXTERNAL + pw_0 times 2 dw 0 pw_1 times 2 dw 1 pw_4 times 2 dw 4 @@ -48,12 +52,10 @@ pw_256 times 2 dw 256 %endrep %endmacro -%if ARCH_X86_64 AVG_JMP_TABLE avg, 8, avx2, 2, 4, 8, 16, 32, 64, 128 AVG_JMP_TABLE avg, 16, avx2, 2, 4, 8, 16, 32, 64, 128 AVG_JMP_TABLE w_avg, 8, avx2, 2, 4, 8, 16, 32, 64, 128 AVG_JMP_TABLE w_avg, 16, avx2, 2, 4, 8, 16, 32, 64, 128 -%endif SECTION .text @@ -286,9 +288,6 @@ cglobal vvc_w_avg_%1bpc, 4, 8, 8, dst, stride, src0, src1, w, h, t0, t1 AVG_FN %1, W_AVG %endmacro -%if ARCH_X86_64 - -%if HAVE_AVX2_EXTERNAL INIT_YMM avx2 VVC_AVG_AVX2 16 |