x86/scale_avx2: add missing check for AVX2 assembler support

Should fix compilation with old yasm.

Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2021-12-16 09:41:56 -03:00
parent 0ab5d7e92b
commit 76a3f961f8
1 changed files with 2 additions and 0 deletions

View File

@ -106,7 +106,9 @@ REP_RET
%endmacro
%if ARCH_X86_64
%if HAVE_AVX2_EXTERNAL
INIT_YMM avx2
SCALE_FUNC 4
SCALE_FUNC X4
%endif
%endif