mem: fix compilation with YASM

Fixes #294.

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
This commit is contained in:
Pablo de Lara 2025-01-07 20:33:19 +00:00
parent 28305ade9e
commit b0f067f94b
4 changed files with 12 additions and 1 deletions

View File

@ -26,6 +26,7 @@ v2.31.1
* Fixed spelling mistakes and typos.
* Fixed Windows build on erasure code performance applications.
* Fixed FreeBSD build warnings.
* Fixed compilation with YASM.
v2.31

View File

@ -33,7 +33,9 @@
default rel
[bits 64]
extern mem_zero_detect_avx512
%ifdef HAVE_AS_KNOWS_AVX512
extern mem_zero_detect_avx512
%endif
extern mem_zero_detect_avx2
extern mem_zero_detect_avx
extern mem_zero_detect_sse

View File

@ -67,8 +67,12 @@
%define tmp0 arg2
%define tmp1 arg3
; Workaround for YASM
%ifdef HAVE_AS_KNOWS_AVX512
%use smartalign
ALIGNMODE P6
%endif
default rel
[bits 64]

View File

@ -29,6 +29,8 @@
%include "reg_sizes.asm"
%ifdef HAVE_AS_KNOWS_AVX512
%ifidn __OUTPUT_FORMAT__, elf64
%define arg0 rdi
%define arg1 rsi
@ -140,3 +142,5 @@ align 16
endproc_frame
%endif ; ifdef HAVE_AS_KNOWS_AVX512