build: Fix for windows to allow nasm use

Previously windows build could only use yasm because some procedural items such
as proc_start were not supported by nasm.  This adds a few macros and fixes so
nasm can be used to build on windows.

Change-Id: Ia05dc3ff482f33b0f915bb1be3c7df5e4a753b3a
Signed-off-by: Greg Tucker <greg.b.tucker@intel.com>
This commit is contained in:
Greg Tucker 2020-03-16 16:23:55 -07:00
parent 5ab40c79cc
commit ede04f0a1f
107 changed files with 206 additions and 113 deletions

View File

@ -73,7 +73,7 @@ section .text
%endif %endif
align 16 align 16
global crc16_t10dif_01:ISAL_SYM_TYPE_FUNCTION mk_global crc16_t10dif_01, function
crc16_t10dif_01: crc16_t10dif_01:
; adjust the 16-bit initial_crc value, scale it to 32 bits ; adjust the 16-bit initial_crc value, scale it to 32 bits

View File

@ -73,7 +73,7 @@ section .text
%endif %endif
align 16 align 16
global crc16_t10dif_02:ISAL_SYM_TYPE_FUNCTION mk_global crc16_t10dif_02, function
crc16_t10dif_02: crc16_t10dif_02:
; adjust the 16-bit initial_crc value, scale it to 32 bits ; adjust the 16-bit initial_crc value, scale it to 32 bits

View File

@ -82,7 +82,7 @@ section .text
%endif %endif
align 16 align 16
global FUNCTION_NAME:ISAL_SYM_TYPE_FUNCTION mk_global FUNCTION_NAME, function
FUNCTION_NAME: FUNCTION_NAME:
; adjust the 16-bit initial_crc value, scale it to 32 bits ; adjust the 16-bit initial_crc value, scale it to 32 bits

View File

@ -66,7 +66,7 @@ section .text
%endif %endif
align 16 align 16
global crc16_t10dif_by4:ISAL_SYM_TYPE_FUNCTION mk_global crc16_t10dif_by4, function
crc16_t10dif_by4: crc16_t10dif_by4:
; adjust the 16-bit initial_crc value, scale it to 32 bits ; adjust the 16-bit initial_crc value, scale it to 32 bits

View File

@ -69,7 +69,7 @@ section .text
%endif %endif
align 16 align 16
global crc16_t10dif_copy_by4:ISAL_SYM_TYPE_FUNCTION mk_global crc16_t10dif_copy_by4, function
crc16_t10dif_copy_by4: crc16_t10dif_copy_by4:
; adjust the 16-bit initial_crc value, scale it to 32 bits ; adjust the 16-bit initial_crc value, scale it to 32 bits

View File

@ -69,7 +69,7 @@ section .text
%endif %endif
align 16 align 16
global crc16_t10dif_copy_by4_02:ISAL_SYM_TYPE_FUNCTION mk_global crc16_t10dif_copy_by4_02, function
crc16_t10dif_copy_by4_02: crc16_t10dif_copy_by4_02:
; adjust the 16-bit initial_crc value, scale it to 32 bits ; adjust the 16-bit initial_crc value, scale it to 32 bits

View File

@ -92,7 +92,7 @@ section .text
%endif %endif
align 16 align 16
global FUNCTION_NAME:ISAL_SYM_TYPE_FUNCTION mk_global FUNCTION_NAME, function
FUNCTION_NAME: FUNCTION_NAME:
not arg1_low32 not arg1_low32

View File

@ -86,7 +86,7 @@ section .text
%endif %endif
align 16 align 16
global crc32_gzip_refl_by8:ISAL_SYM_TYPE_FUNCTION mk_global crc32_gzip_refl_by8, function
crc32_gzip_refl_by8: crc32_gzip_refl_by8:
; unsigned long c = crc ^ 0xffffffffL; ; unsigned long c = crc ^ 0xffffffffL;

View File

@ -86,7 +86,7 @@ section .text
%endif %endif
align 16 align 16
global crc32_gzip_refl_by8_02:ISAL_SYM_TYPE_FUNCTION mk_global crc32_gzip_refl_by8_02, function
crc32_gzip_refl_by8_02: crc32_gzip_refl_by8_02:
not arg1_low32 not arg1_low32
sub rsp, VARIABLE_OFFSET sub rsp, VARIABLE_OFFSET

View File

@ -72,7 +72,7 @@ section .text
%define VARIABLE_OFFSET 16*2+8 %define VARIABLE_OFFSET 16*2+8
%endif %endif
align 16 align 16
global crc32_ieee_01:ISAL_SYM_TYPE_FUNCTION mk_global crc32_ieee_01, function
crc32_ieee_01: crc32_ieee_01:
not arg1_low32 ;~init_crc not arg1_low32 ;~init_crc

View File

@ -72,7 +72,7 @@ section .text
%define VARIABLE_OFFSET 16*2+8 %define VARIABLE_OFFSET 16*2+8
%endif %endif
align 16 align 16
global crc32_ieee_02:ISAL_SYM_TYPE_FUNCTION mk_global crc32_ieee_02, function
crc32_ieee_02: crc32_ieee_02:
not arg1_low32 ;~init_crc not arg1_low32 ;~init_crc

View File

@ -82,7 +82,7 @@ section .text
%endif %endif
align 16 align 16
global FUNCTION_NAME:ISAL_SYM_TYPE_FUNCTION mk_global FUNCTION_NAME, function
FUNCTION_NAME: FUNCTION_NAME:
not arg1_low32 not arg1_low32

View File

@ -74,7 +74,7 @@ section .text
%endif %endif
align 16 align 16
global crc32_ieee_by4:ISAL_SYM_TYPE_FUNCTION mk_global crc32_ieee_by4, function
crc32_ieee_by4: crc32_ieee_by4:
not arg1_low32 not arg1_low32

View File

@ -153,7 +153,7 @@ default rel
;;; crc_init = r8 ;;; crc_init = r8
;;; ;;;
global crc32_iscsi_00:ISAL_SYM_TYPE_FUNCTION mk_global crc32_iscsi_00, function
crc32_iscsi_00: crc32_iscsi_00:
%ifidn __OUTPUT_FORMAT__, elf64 %ifidn __OUTPUT_FORMAT__, elf64

View File

@ -50,7 +50,7 @@ default rel
;;; len = rdx ;;; len = rdx
;;; crc_init = r8 ;;; crc_init = r8
global crc32_iscsi_01:ISAL_SYM_TYPE_FUNCTION mk_global crc32_iscsi_01, function
crc32_iscsi_01: crc32_iscsi_01:
%ifidn __OUTPUT_FORMAT__, elf64 %ifidn __OUTPUT_FORMAT__, elf64

View File

@ -62,7 +62,7 @@ section .text
%define VARIABLE_OFFSET 16*2+8 %define VARIABLE_OFFSET 16*2+8
%endif %endif
align 16 align 16
global crc64_ecma_norm_by8:ISAL_SYM_TYPE_FUNCTION mk_global crc64_ecma_norm_by8, function
crc64_ecma_norm_by8: crc64_ecma_norm_by8:
not arg1 ;~init_crc not arg1 ;~init_crc

View File

@ -68,7 +68,7 @@ section .text
align 16 align 16
global crc64_ecma_refl_by8:ISAL_SYM_TYPE_FUNCTION mk_global crc64_ecma_refl_by8, function
crc64_ecma_refl_by8: crc64_ecma_refl_by8:
; uint64_t c = crc ^ 0xffffffff,ffffffffL; ; uint64_t c = crc ^ 0xffffffff,ffffffffL;
not arg1 not arg1

View File

@ -69,7 +69,7 @@ section .text
%endif %endif
align 16 align 16
global FUNCTION_NAME:ISAL_SYM_TYPE_FUNCTION mk_global FUNCTION_NAME, function
FUNCTION_NAME: FUNCTION_NAME:
not arg1 not arg1
sub rsp, VARIABLE_OFFSET sub rsp, VARIABLE_OFFSET

View File

@ -61,7 +61,7 @@ section .text
%define VARIABLE_OFFSET 16*2+8 %define VARIABLE_OFFSET 16*2+8
%endif %endif
align 16 align 16
global crc64_iso_norm_by8:ISAL_SYM_TYPE_FUNCTION mk_global crc64_iso_norm_by8, function
crc64_iso_norm_by8: crc64_iso_norm_by8:
not arg1 ;~init_crc not arg1 ;~init_crc

View File

@ -70,7 +70,7 @@ section .text
%endif %endif
align 16 align 16
global FUNCTION_NAME:ISAL_SYM_TYPE_FUNCTION mk_global FUNCTION_NAME, function
FUNCTION_NAME: FUNCTION_NAME:
not arg1 not arg1
sub rsp, VARIABLE_OFFSET sub rsp, VARIABLE_OFFSET

View File

@ -65,7 +65,7 @@ section .text
align 16 align 16
global crc64_iso_refl_by8:ISAL_SYM_TYPE_FUNCTION mk_global crc64_iso_refl_by8, function
crc64_iso_refl_by8: crc64_iso_refl_by8:
; uint64_t c = crc ^ 0xffffffff,ffffffffL; ; uint64_t c = crc ^ 0xffffffff,ffffffffL;
not arg1 not arg1

View File

@ -61,7 +61,7 @@ section .text
%define VARIABLE_OFFSET 16*2+8 %define VARIABLE_OFFSET 16*2+8
%endif %endif
align 16 align 16
global crc64_jones_norm_by8:ISAL_SYM_TYPE_FUNCTION mk_global crc64_jones_norm_by8, function
crc64_jones_norm_by8: crc64_jones_norm_by8:
not arg1 ;~init_crc not arg1 ;~init_crc

View File

@ -65,7 +65,7 @@ section .text
align 16 align 16
global crc64_jones_refl_by8:ISAL_SYM_TYPE_FUNCTION mk_global crc64_jones_refl_by8, function
crc64_jones_refl_by8: crc64_jones_refl_by8:
; uint64_t c = crc ^ 0xffffffff,ffffffffL; ; uint64_t c = crc ^ 0xffffffff,ffffffffL;
not arg1 not arg1

View File

@ -79,7 +79,7 @@ section .text
;;;; ;;;;
; crc32_iscsi multibinary function ; crc32_iscsi multibinary function
;;;; ;;;;
global crc32_iscsi:ISAL_SYM_TYPE_FUNCTION mk_global crc32_iscsi, function
crc32_iscsi_mbinit: crc32_iscsi_mbinit:
call crc32_iscsi_dispatch_init call crc32_iscsi_dispatch_init
crc32_iscsi: crc32_iscsi:
@ -113,7 +113,7 @@ crc32_iscsi_dispatch_init:
;;;; ;;;;
; crc32_ieee multibinary function ; crc32_ieee multibinary function
;;;; ;;;;
global crc32_ieee:ISAL_SYM_TYPE_FUNCTION mk_global crc32_ieee, function
crc32_ieee_mbinit: crc32_ieee_mbinit:
call crc32_ieee_dispatch_init call crc32_ieee_dispatch_init
crc32_ieee: crc32_ieee:
@ -192,7 +192,7 @@ crc32_ieee_dispatch_init:
;;;; ;;;;
; crc16_t10dif multibinary function ; crc16_t10dif multibinary function
;;;; ;;;;
global crc16_t10dif:ISAL_SYM_TYPE_FUNCTION mk_global crc16_t10dif, function
crc16_t10dif_mbinit: crc16_t10dif_mbinit:
call crc16_t10dif_dispatch_init call crc16_t10dif_dispatch_init
crc16_t10dif: crc16_t10dif:

View File

@ -238,7 +238,7 @@ section .text
%endif %endif
align 16 align 16
global gf_2vect_dot_prod_avx:ISAL_SYM_TYPE_FUNCTION mk_global gf_2vect_dot_prod_avx, function
func(gf_2vect_dot_prod_avx) func(gf_2vect_dot_prod_avx)
FUNC_SAVE FUNC_SAVE

View File

@ -248,7 +248,7 @@ section .text
%endif %endif
align 16 align 16
global gf_2vect_dot_prod_avx2:ISAL_SYM_TYPE_FUNCTION mk_global gf_2vect_dot_prod_avx2, function
func(gf_2vect_dot_prod_avx2) func(gf_2vect_dot_prod_avx2)
FUNC_SAVE FUNC_SAVE

View File

@ -160,7 +160,7 @@ default rel
section .text section .text
align 16 align 16
global gf_2vect_dot_prod_avx512:ISAL_SYM_TYPE_FUNCTION mk_global gf_2vect_dot_prod_avx512, function
func(gf_2vect_dot_prod_avx512) func(gf_2vect_dot_prod_avx512)
FUNC_SAVE FUNC_SAVE
sub len, 64 sub len, 64

View File

@ -238,7 +238,7 @@ section .text
%endif %endif
align 16 align 16
global gf_2vect_dot_prod_sse:ISAL_SYM_TYPE_FUNCTION mk_global gf_2vect_dot_prod_sse, function
func(gf_2vect_dot_prod_sse) func(gf_2vect_dot_prod_sse)
FUNC_SAVE FUNC_SAVE

View File

@ -155,7 +155,7 @@ section .text
align 16 align 16
global gf_2vect_mad_avx:ISAL_SYM_TYPE_FUNCTION mk_global gf_2vect_mad_avx, function
func(gf_2vect_mad_avx) func(gf_2vect_mad_avx)
FUNC_SAVE FUNC_SAVE

View File

@ -163,7 +163,7 @@ section .text
%define xtmpd2 ymm9 %define xtmpd2 ymm9
align 16 align 16
global gf_2vect_mad_avx2:ISAL_SYM_TYPE_FUNCTION mk_global gf_2vect_mad_avx2, function
func(gf_2vect_mad_avx2) func(gf_2vect_mad_avx2)
FUNC_SAVE FUNC_SAVE

View File

@ -149,7 +149,7 @@ section .text
%define xmask0f zmm14 %define xmask0f zmm14
align 16 align 16
global gf_2vect_mad_avx512:ISAL_SYM_TYPE_FUNCTION mk_global gf_2vect_mad_avx512, function
func(gf_2vect_mad_avx512) func(gf_2vect_mad_avx512)
FUNC_SAVE FUNC_SAVE
sub len, 64 sub len, 64

View File

@ -154,7 +154,7 @@ section .text
align 16 align 16
global gf_2vect_mad_sse:ISAL_SYM_TYPE_FUNCTION mk_global gf_2vect_mad_sse, function
func(gf_2vect_mad_sse) func(gf_2vect_mad_sse)
FUNC_SAVE FUNC_SAVE
sub len, 16 sub len, 16

View File

@ -261,7 +261,7 @@ section .text
%endif %endif
align 16 align 16
global gf_3vect_dot_prod_avx:ISAL_SYM_TYPE_FUNCTION mk_global gf_3vect_dot_prod_avx, function
func(gf_3vect_dot_prod_avx) func(gf_3vect_dot_prod_avx)
FUNC_SAVE FUNC_SAVE
SLDR len, len_m SLDR len, len_m

View File

@ -269,7 +269,7 @@ section .text
%endif %endif
align 16 align 16
global gf_3vect_dot_prod_avx2:ISAL_SYM_TYPE_FUNCTION mk_global gf_3vect_dot_prod_avx2, function
func(gf_3vect_dot_prod_avx2) func(gf_3vect_dot_prod_avx2)
FUNC_SAVE FUNC_SAVE
SLDR len, len_m SLDR len, len_m

View File

@ -173,7 +173,7 @@ default rel
section .text section .text
align 16 align 16
global gf_3vect_dot_prod_avx512:ISAL_SYM_TYPE_FUNCTION mk_global gf_3vect_dot_prod_avx512, function
func(gf_3vect_dot_prod_avx512) func(gf_3vect_dot_prod_avx512)
FUNC_SAVE FUNC_SAVE
sub len, 64 sub len, 64

View File

@ -261,7 +261,7 @@ section .text
%endif %endif
align 16 align 16
global gf_3vect_dot_prod_sse:ISAL_SYM_TYPE_FUNCTION mk_global gf_3vect_dot_prod_sse, function
func(gf_3vect_dot_prod_sse) func(gf_3vect_dot_prod_sse)
FUNC_SAVE FUNC_SAVE
SLDR len, len_m SLDR len, len_m

View File

@ -158,7 +158,7 @@ section .text
%define xd3 xtmph1 %define xd3 xtmph1
align 16 align 16
global gf_3vect_mad_avx:ISAL_SYM_TYPE_FUNCTION mk_global gf_3vect_mad_avx, function
func(gf_3vect_mad_avx) func(gf_3vect_mad_avx)
FUNC_SAVE FUNC_SAVE
sub len, 16 sub len, 16

View File

@ -165,7 +165,7 @@ section .text
%define xd3 ymm10 %define xd3 ymm10
align 16 align 16
global gf_3vect_mad_avx2:ISAL_SYM_TYPE_FUNCTION mk_global gf_3vect_mad_avx2, function
func(gf_3vect_mad_avx2) func(gf_3vect_mad_avx2)
FUNC_SAVE FUNC_SAVE
sub len, 32 sub len, 32

View File

@ -152,7 +152,7 @@ section .text
%define xmask0f zmm17 %define xmask0f zmm17
align 16 align 16
global gf_3vect_mad_avx512:ISAL_SYM_TYPE_FUNCTION mk_global gf_3vect_mad_avx512, function
func(gf_3vect_mad_avx512) func(gf_3vect_mad_avx512)
FUNC_SAVE FUNC_SAVE
sub len, 64 sub len, 64

View File

@ -156,7 +156,7 @@ section .text
%define xd3 xtmph1 %define xd3 xtmph1
align 16 align 16
global gf_3vect_mad_sse:ISAL_SYM_TYPE_FUNCTION mk_global gf_3vect_mad_sse, function
func(gf_3vect_mad_sse) func(gf_3vect_mad_sse)
FUNC_SAVE FUNC_SAVE
sub len, 16 sub len, 16

View File

@ -294,7 +294,7 @@ section .text
%define xp4 xmm5 %define xp4 xmm5
%endif %endif
align 16 align 16
global gf_4vect_dot_prod_avx:ISAL_SYM_TYPE_FUNCTION mk_global gf_4vect_dot_prod_avx, function
func(gf_4vect_dot_prod_avx) func(gf_4vect_dot_prod_avx)
FUNC_SAVE FUNC_SAVE
SLDR len, len_m SLDR len, len_m

View File

@ -302,7 +302,7 @@ section .text
%define xp4 ymm5 %define xp4 ymm5
%endif %endif
align 16 align 16
global gf_4vect_dot_prod_avx2:ISAL_SYM_TYPE_FUNCTION mk_global gf_4vect_dot_prod_avx2, function
func(gf_4vect_dot_prod_avx2) func(gf_4vect_dot_prod_avx2)
FUNC_SAVE FUNC_SAVE
SLDR len, len_m SLDR len, len_m

View File

@ -191,7 +191,7 @@ default rel
section .text section .text
align 16 align 16
global gf_4vect_dot_prod_avx512:ISAL_SYM_TYPE_FUNCTION mk_global gf_4vect_dot_prod_avx512, function
func(gf_4vect_dot_prod_avx512) func(gf_4vect_dot_prod_avx512)
FUNC_SAVE FUNC_SAVE
sub len, 64 sub len, 64

View File

@ -294,7 +294,7 @@ section .text
%define xp4 xmm5 %define xp4 xmm5
%endif %endif
align 16 align 16
global gf_4vect_dot_prod_sse:ISAL_SYM_TYPE_FUNCTION mk_global gf_4vect_dot_prod_sse, function
func(gf_4vect_dot_prod_sse) func(gf_4vect_dot_prod_sse)
FUNC_SAVE FUNC_SAVE
SLDR len, len_m SLDR len, len_m

View File

@ -169,7 +169,7 @@ section .text
%define xd4 xtmpl1 %define xd4 xtmpl1
align 16 align 16
global gf_4vect_mad_avx:ISAL_SYM_TYPE_FUNCTION mk_global gf_4vect_mad_avx, function
func(gf_4vect_mad_avx) func(gf_4vect_mad_avx)
FUNC_SAVE FUNC_SAVE
sub len, 16 sub len, 16

View File

@ -165,7 +165,7 @@ section .text
%define xd4 ymm10 %define xd4 ymm10
align 16 align 16
global gf_4vect_mad_avx2:ISAL_SYM_TYPE_FUNCTION mk_global gf_4vect_mad_avx2, function
func(gf_4vect_mad_avx2) func(gf_4vect_mad_avx2)
FUNC_SAVE FUNC_SAVE
sub len, 32 sub len, 32

View File

@ -159,7 +159,7 @@ section .text
%define xtmpl5 zmm23 %define xtmpl5 zmm23
align 16 align 16
global gf_4vect_mad_avx512:ISAL_SYM_TYPE_FUNCTION mk_global gf_4vect_mad_avx512, function
func(gf_4vect_mad_avx512) func(gf_4vect_mad_avx512)
FUNC_SAVE FUNC_SAVE
sub len, 64 sub len, 64

View File

@ -168,7 +168,7 @@ section .text
%define xd4 xtmpl1 %define xd4 xtmpl1
align 16 align 16
global gf_4vect_mad_sse:ISAL_SYM_TYPE_FUNCTION mk_global gf_4vect_mad_sse, function
func(gf_4vect_mad_sse) func(gf_4vect_mad_sse)
FUNC_SAVE FUNC_SAVE
sub len, 16 sub len, 16

View File

@ -184,7 +184,7 @@ section .text
%define xp5 xmm6 %define xp5 xmm6
align 16 align 16
global gf_5vect_dot_prod_avx:ISAL_SYM_TYPE_FUNCTION mk_global gf_5vect_dot_prod_avx, function
func(gf_5vect_dot_prod_avx) func(gf_5vect_dot_prod_avx)
FUNC_SAVE FUNC_SAVE
sub len, 16 sub len, 16

View File

@ -189,7 +189,7 @@ section .text
%define xp5 ymm6 %define xp5 ymm6
align 16 align 16
global gf_5vect_dot_prod_avx2:ISAL_SYM_TYPE_FUNCTION mk_global gf_5vect_dot_prod_avx2, function
func(gf_5vect_dot_prod_avx2) func(gf_5vect_dot_prod_avx2)
FUNC_SAVE FUNC_SAVE
sub len, 32 sub len, 32

View File

@ -211,7 +211,7 @@ default rel
section .text section .text
align 16 align 16
global gf_5vect_dot_prod_avx512:ISAL_SYM_TYPE_FUNCTION mk_global gf_5vect_dot_prod_avx512, function
func(gf_5vect_dot_prod_avx512) func(gf_5vect_dot_prod_avx512)
FUNC_SAVE FUNC_SAVE
sub len, 64 sub len, 64

View File

@ -184,7 +184,7 @@ section .text
%define xp5 xmm14 %define xp5 xmm14
align 16 align 16
global gf_5vect_dot_prod_sse:ISAL_SYM_TYPE_FUNCTION mk_global gf_5vect_dot_prod_sse, function
func(gf_5vect_dot_prod_sse) func(gf_5vect_dot_prod_sse)
FUNC_SAVE FUNC_SAVE
sub len, 16 sub len, 16

View File

@ -178,7 +178,7 @@ section .text
align 16 align 16
global gf_5vect_mad_avx:ISAL_SYM_TYPE_FUNCTION mk_global gf_5vect_mad_avx, function
func(gf_5vect_mad_avx) func(gf_5vect_mad_avx)
FUNC_SAVE FUNC_SAVE
sub len, 16 sub len, 16

View File

@ -166,7 +166,7 @@ section .text
%define xd5 ymm9 %define xd5 ymm9
align 16 align 16
global gf_5vect_mad_avx2:ISAL_SYM_TYPE_FUNCTION mk_global gf_5vect_mad_avx2, function
func(gf_5vect_mad_avx2) func(gf_5vect_mad_avx2)
FUNC_SAVE FUNC_SAVE
sub len, 32 sub len, 32

View File

@ -167,7 +167,7 @@ section .text
%define xtmph5 zmm27 %define xtmph5 zmm27
align 16 align 16
global gf_5vect_mad_avx512:ISAL_SYM_TYPE_FUNCTION mk_global gf_5vect_mad_avx512, function
func(gf_5vect_mad_avx512) func(gf_5vect_mad_avx512)
FUNC_SAVE FUNC_SAVE
sub len, 64 sub len, 64

View File

@ -177,7 +177,7 @@ section .text
align 16 align 16
global gf_5vect_mad_sse:ISAL_SYM_TYPE_FUNCTION mk_global gf_5vect_mad_sse, function
func(gf_5vect_mad_sse) func(gf_5vect_mad_sse)
FUNC_SAVE FUNC_SAVE
sub len, 16 sub len, 16

View File

@ -182,7 +182,7 @@ section .text
%define xp6 xmm7 %define xp6 xmm7
align 16 align 16
global gf_6vect_dot_prod_avx:ISAL_SYM_TYPE_FUNCTION mk_global gf_6vect_dot_prod_avx, function
func(gf_6vect_dot_prod_avx) func(gf_6vect_dot_prod_avx)
FUNC_SAVE FUNC_SAVE
sub len, 16 sub len, 16

View File

@ -187,7 +187,7 @@ section .text
%define xp6 ymm7 %define xp6 ymm7
align 16 align 16
global gf_6vect_dot_prod_avx2:ISAL_SYM_TYPE_FUNCTION mk_global gf_6vect_dot_prod_avx2, function
func(gf_6vect_dot_prod_avx2) func(gf_6vect_dot_prod_avx2)
FUNC_SAVE FUNC_SAVE
sub len, 32 sub len, 32

View File

@ -215,7 +215,7 @@ default rel
section .text section .text
align 16 align 16
global gf_6vect_dot_prod_avx512:ISAL_SYM_TYPE_FUNCTION mk_global gf_6vect_dot_prod_avx512, function
func(gf_6vect_dot_prod_avx512) func(gf_6vect_dot_prod_avx512)
FUNC_SAVE FUNC_SAVE
sub len, 64 sub len, 64

View File

@ -182,7 +182,7 @@ section .text
%define xp6 xmm13 %define xp6 xmm13
align 16 align 16
global gf_6vect_dot_prod_sse:ISAL_SYM_TYPE_FUNCTION mk_global gf_6vect_dot_prod_sse, function
func(gf_6vect_dot_prod_sse) func(gf_6vect_dot_prod_sse)
FUNC_SAVE FUNC_SAVE
sub len, 16 sub len, 16

View File

@ -184,7 +184,7 @@ section .text
align 16 align 16
global gf_6vect_mad_avx:ISAL_SYM_TYPE_FUNCTION mk_global gf_6vect_mad_avx, function
func(gf_6vect_mad_avx) func(gf_6vect_mad_avx)
FUNC_SAVE FUNC_SAVE
sub len, 16 sub len, 16

View File

@ -177,7 +177,7 @@ section .text
%define xd6 xd1 %define xd6 xd1
align 16 align 16
global gf_6vect_mad_avx2:ISAL_SYM_TYPE_FUNCTION mk_global gf_6vect_mad_avx2, function
func(gf_6vect_mad_avx2) func(gf_6vect_mad_avx2)
FUNC_SAVE FUNC_SAVE
sub len, 32 sub len, 32

View File

@ -181,7 +181,7 @@ section .text
%define xtmph6 zmm31 %define xtmph6 zmm31
align 16 align 16
global gf_6vect_mad_avx512:ISAL_SYM_TYPE_FUNCTION mk_global gf_6vect_mad_avx512, function
func(gf_6vect_mad_avx512) func(gf_6vect_mad_avx512)
FUNC_SAVE FUNC_SAVE
sub len, 64 sub len, 64

View File

@ -185,7 +185,7 @@ section .text
align 16 align 16
global gf_6vect_mad_sse:ISAL_SYM_TYPE_FUNCTION mk_global gf_6vect_mad_sse, function
func(gf_6vect_mad_sse) func(gf_6vect_mad_sse)
FUNC_SAVE FUNC_SAVE
sub len, 16 sub len, 16

View File

@ -194,7 +194,7 @@ section .text
%define xp xmm2 %define xp xmm2
align 16 align 16
global gf_vect_dot_prod_avx:ISAL_SYM_TYPE_FUNCTION mk_global gf_vect_dot_prod_avx, function
func(gf_vect_dot_prod_avx) func(gf_vect_dot_prod_avx)
FUNC_SAVE FUNC_SAVE
SLDR len, len_m SLDR len, len_m

View File

@ -202,7 +202,7 @@ section .text
%define xp ymm2 %define xp ymm2
align 16 align 16
global gf_vect_dot_prod_avx2:ISAL_SYM_TYPE_FUNCTION mk_global gf_vect_dot_prod_avx2, function
func(gf_vect_dot_prod_avx2) func(gf_vect_dot_prod_avx2)
FUNC_SAVE FUNC_SAVE
SLDR len, len_m SLDR len, len_m

View File

@ -128,7 +128,7 @@ default rel
section .text section .text
align 16 align 16
global gf_vect_dot_prod_avx512:ISAL_SYM_TYPE_FUNCTION mk_global gf_vect_dot_prod_avx512, function
func(gf_vect_dot_prod_avx512) func(gf_vect_dot_prod_avx512)
FUNC_SAVE FUNC_SAVE
xor pos, pos xor pos, pos

View File

@ -194,7 +194,7 @@ section .text
%define xp xmm2 %define xp xmm2
align 16 align 16
global gf_vect_dot_prod_sse:ISAL_SYM_TYPE_FUNCTION mk_global gf_vect_dot_prod_sse, function
func(gf_vect_dot_prod_sse) func(gf_vect_dot_prod_sse)
FUNC_SAVE FUNC_SAVE
SLDR len, len_m SLDR len, len_m

View File

@ -131,7 +131,7 @@ section .text
%define xtmpd xmm5 %define xtmpd xmm5
align 16 align 16
global gf_vect_mad_avx:ISAL_SYM_TYPE_FUNCTION mk_global gf_vect_mad_avx, function
func(gf_vect_mad_avx) func(gf_vect_mad_avx)
FUNC_SAVE FUNC_SAVE
sub len, 16 sub len, 16

View File

@ -139,7 +139,7 @@ section .text
%define xtmpd ymm5 %define xtmpd ymm5
align 16 align 16
global gf_vect_mad_avx2:ISAL_SYM_TYPE_FUNCTION mk_global gf_vect_mad_avx2, function
func(gf_vect_mad_avx2) func(gf_vect_mad_avx2)
FUNC_SAVE FUNC_SAVE
sub len, 32 sub len, 32

View File

@ -127,7 +127,7 @@ section .text
%define xmask0f zmm8 %define xmask0f zmm8
align 16 align 16
global gf_vect_mad_avx512:ISAL_SYM_TYPE_FUNCTION mk_global gf_vect_mad_avx512, function
func(gf_vect_mad_avx512) func(gf_vect_mad_avx512)
FUNC_SAVE FUNC_SAVE
sub len, 64 sub len, 64

View File

@ -131,7 +131,7 @@ section .text
align 16 align 16
global gf_vect_mad_sse:ISAL_SYM_TYPE_FUNCTION mk_global gf_vect_mad_sse, function
func(gf_vect_mad_sse) func(gf_vect_mad_sse)
FUNC_SAVE FUNC_SAVE
sub len, 16 sub len, 16

View File

@ -111,7 +111,7 @@ section .text
%define xtmp2c xmm7 %define xtmp2c xmm7
align 16 align 16
global gf_vect_mul_avx:ISAL_SYM_TYPE_FUNCTION mk_global gf_vect_mul_avx, function
func(gf_vect_mul_avx) func(gf_vect_mul_avx)
FUNC_SAVE FUNC_SAVE
mov pos, 0 mov pos, 0

View File

@ -112,7 +112,7 @@ section .text
align 16 align 16
global gf_vect_mul_sse:ISAL_SYM_TYPE_FUNCTION mk_global gf_vect_mul_sse, function
func(gf_vect_mul_sse) func(gf_vect_mul_sse)
FUNC_SAVE FUNC_SAVE
mov pos, 0 mov pos, 0

View File

@ -123,8 +123,11 @@ default rel
%define yshuf0 ymm6 %define yshuf0 ymm6
%define yshuf1 ymm7 %define yshuf1 ymm7
[bits 64]
default rel
section .text
global adler32_avx2_4:ISAL_SYM_TYPE_FUNCTION mk_global adler32_avx2_4, function
func(adler32_avx2_4) func(adler32_avx2_4)
FUNC_SAVE FUNC_SAVE

View File

@ -104,7 +104,11 @@ default rel
%define xdata1 xmm3 %define xdata1 xmm3
%define xsa xmm4 %define xsa xmm4
global adler32_sse:ISAL_SYM_TYPE_FUNCTION [bits 64]
default rel
section .text
mk_global adler32_sse, function
func(adler32_sse) func(adler32_sse)
FUNC_SAVE FUNC_SAVE

View File

@ -172,6 +172,9 @@ stack_size equ gpr_save_mem_size + xmm_save_mem_size + bitbuf_mem_size
%endmacro %endmacro
default rel
section .text
global encode_deflate_icf_ %+ ARCH global encode_deflate_icf_ %+ ARCH
encode_deflate_icf_ %+ ARCH: encode_deflate_icf_ %+ ARCH:
FUNC_SAVE FUNC_SAVE

View File

@ -185,6 +185,9 @@ stack_size equ gpr_save_mem_size + xmm_save_mem_size + bitbuf_mem_size
%endmacro %endmacro
default rel
section .text
global encode_deflate_icf_ %+ ARCH global encode_deflate_icf_ %+ ARCH
encode_deflate_icf_ %+ ARCH: encode_deflate_icf_ %+ ARCH:
FUNC_SAVE FUNC_SAVE

View File

@ -134,6 +134,11 @@ stack_size equ 4*8 + 8*8 + 4*16 + 8
%if ARCH == 04 %if ARCH == 04
%define USE_HSWNI %define USE_HSWNI
%endif %endif
[bits 64]
default rel
section .text
; void isal_deflate_body ( isal_zstream *stream ) ; void isal_deflate_body ( isal_zstream *stream )
; arg 1: rcx: addr of stream ; arg 1: rcx: addr of stream
global isal_deflate_body_ %+ ARCH global isal_deflate_body_ %+ ARCH

View File

@ -459,6 +459,10 @@ stack_size equ 4 * 8 + 8 * 8
decode_next_dist %%state, %%lookup_size, %%state_offset, %%read_in, %%read_in_length, %%next_sym, %%next_extra_bits, %%next_bits decode_next_dist %%state, %%lookup_size, %%state_offset, %%read_in, %%read_in_length, %%next_sym, %%next_extra_bits, %%next_bits
%endm %endm
[bits 64]
default rel
section .text
global decode_huffman_code_block_stateless_ %+ ARCH global decode_huffman_code_block_stateless_ %+ ARCH
decode_huffman_code_block_stateless_ %+ ARCH %+ : decode_huffman_code_block_stateless_ %+ ARCH %+ :

View File

@ -98,6 +98,10 @@
%endif %endif
%endm %endm
[bits 64]
default rel
section .text
global isal_deflate_hash_crc_01 global isal_deflate_hash_crc_01
isal_deflate_hash_crc_01: isal_deflate_hash_crc_01:
FUNC_SAVE FUNC_SAVE

View File

@ -85,6 +85,11 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
f_end_i_mem_offset equ 0 ; local variable (8 bytes) f_end_i_mem_offset equ 0 ; local variable (8 bytes)
stack_size equ 8 stack_size equ 8
[bits 64]
default rel
section .text
; void isal_deflate_finish ( isal_zstream *stream ) ; void isal_deflate_finish ( isal_zstream *stream )
; arg 1: rcx: addr of stream ; arg 1: rcx: addr of stream
global isal_deflate_finish_01 global isal_deflate_finish_01

View File

@ -169,6 +169,10 @@
%define VECT_SIZE 8 %define VECT_SIZE 8
%define HASH_BYTES 2 %define HASH_BYTES 2
[bits 64]
default rel
section .text
global gen_icf_map_lh1_04 global gen_icf_map_lh1_04
func(gen_icf_map_lh1_04) func(gen_icf_map_lh1_04)
FUNC_SAVE FUNC_SAVE

View File

@ -160,6 +160,10 @@
%define VECT_SIZE 16 %define VECT_SIZE 16
%define HASH_BYTES 2 %define HASH_BYTES 2
[bits 64]
default rel
section .text
global gen_icf_map_lh1_06 global gen_icf_map_lh1_06
func(gen_icf_map_lh1_06) func(gen_icf_map_lh1_06)
FUNC_SAVE FUNC_SAVE

View File

@ -155,6 +155,10 @@ stack_size equ 11*8 + 8*8 + 4*16
%define USE_HSWNI %define USE_HSWNI
%endif %endif
[bits 64]
default rel
section .text
; void isal_deflate_icf_body <hashsize> <arch> ( isal_zstream *stream ) ; void isal_deflate_icf_body <hashsize> <arch> ( isal_zstream *stream )
; we make 6 different versions of this function ; we make 6 different versions of this function
; arg 1: rcx: addr of stream ; arg 1: rcx: addr of stream

View File

@ -94,6 +94,10 @@ stack_size equ 5*8
%xdefine METHOD hash_hist %xdefine METHOD hash_hist
[bits 64]
default rel
section .text
; void isal_deflate_icf_finish ( isal_zstream *stream ) ; void isal_deflate_icf_finish ( isal_zstream *stream )
; arg 1: rcx: addr of stream ; arg 1: rcx: addr of stream
global isal_deflate_icf_finish_ %+ METHOD %+ _01 global isal_deflate_icf_finish_ %+ METHOD %+ _01

View File

@ -135,6 +135,10 @@ default rel
%endif %endif
%define VECT_SIZE 8 %define VECT_SIZE 8
[bits 64]
default rel
section .text
global set_long_icf_fg_04 global set_long_icf_fg_04
func(set_long_icf_fg_04) func(set_long_icf_fg_04)
FUNC_SAVE FUNC_SAVE

View File

@ -142,6 +142,10 @@
%endif %endif
%define VECT_SIZE 16 %define VECT_SIZE 16
[bits 64]
default rel
section .text
global set_long_icf_fg_06 global set_long_icf_fg_06
func(set_long_icf_fg_06) func(set_long_icf_fg_06)
FUNC_SAVE FUNC_SAVE

View File

@ -249,6 +249,10 @@ _hash_offset equ (_dist_offset + 8 * DIST_LEN)
cmovle %%dist_coded, %%dist cmovle %%dist_coded, %%dist
%endm %endm
[bits 64]
default rel
section .text
; void isal_update_histogram ; void isal_update_histogram
global isal_update_histogram_ %+ ARCH global isal_update_histogram_ %+ ARCH
isal_update_histogram_ %+ ARCH %+ : isal_update_histogram_ %+ ARCH %+ :

View File

@ -54,6 +54,10 @@
%define i r11 %define i r11
%define tmp2 r12 %define tmp2 r12
[bits 64]
default rel
section .text
global build_huff_tree global build_huff_tree
build_huff_tree: build_huff_tree:
%ifidn __OUTPUT_FORMAT__, win64 %ifidn __OUTPUT_FORMAT__, win64

View File

@ -45,7 +45,7 @@ section .data
;; uint16_t len_start[32]; ;; uint16_t len_start[32];
;; }; ;; };
global rfc1951_lookup_table:ISAL_SYM_TYPE_DATA_INTERNAL mk_global rfc1951_lookup_table, data, internal
rfc1951_lookup_table: rfc1951_lookup_table:
len_to_code: len_to_code:
db 0x00, 0x00, 0x00 db 0x00, 0x00, 0x00

View File

@ -69,7 +69,7 @@
mbin_def_ptr %1_mbinit mbin_def_ptr %1_mbinit
section .text section .text
global %1:ISAL_SYM_TYPE_FUNCTION mk_global %1, function
%1_mbinit: %1_mbinit:
;;; only called the first time to setup hardware match ;;; only called the first time to setup hardware match
call %1_dispatch_init call %1_dispatch_init

View File

@ -30,14 +30,6 @@
%ifndef _REG_SIZES_ASM_ %ifndef _REG_SIZES_ASM_
%define _REG_SIZES_ASM_ %define _REG_SIZES_ASM_
%ifdef __NASM_VER__
%ifidn __OUTPUT_FORMAT__, win64
%error nasm not supported in windows
%else
%define endproc_frame
%endif
%endif
%ifndef AS_FEATURE_LEVEL %ifndef AS_FEATURE_LEVEL
%define AS_FEATURE_LEVEL 4 %define AS_FEATURE_LEVEL 4
%endif %endif
@ -220,19 +212,57 @@ section .text
%define WRT_OPT %define WRT_OPT
%endif %endif
%macro mk_global 1-3
%ifdef __NASM_VER__
%ifidn __OUTPUT_FORMAT__, macho64
global %1
%elifidn __OUTPUT_FORMAT__, win64
global %1
%else
global %1:%2 %3
%endif
%else
global %1:%2 %3
%endif
%endmacro
; Fixes for nasm lack of MS proc helpers
%ifdef __NASM_VER__
%ifidn __OUTPUT_FORMAT__, win64
%macro alloc_stack 1
sub rsp, %1
%endmacro
%macro proc_frame 1
%1:
%endmacro
%macro save_xmm128 2
movdqa [rsp + %2], %1
%endmacro
%macro save_reg 2
mov [rsp + %2], %1
%endmacro
%macro rex_push_reg 1
push %1
%endmacro
%macro push_reg 1
push %1
%endmacro
%define end_prolog
%endif
%define endproc_frame
%endif
%ifidn __OUTPUT_FORMAT__, macho64 %ifidn __OUTPUT_FORMAT__, macho64
%define elf64 macho64 %define elf64 macho64
mac_equ equ 1 mac_equ equ 1
%ifdef __NASM_VER__
%define ISAL_SYM_TYPE_FUNCTION
%define ISAL_SYM_TYPE_DATA_INTERNAL
%else
%define ISAL_SYM_TYPE_FUNCTION function
%define ISAL_SYM_TYPE_DATA_INTERNAL data internal
%endif
%else
%define ISAL_SYM_TYPE_FUNCTION function
%define ISAL_SYM_TYPE_DATA_INTERNAL data internal
%endif %endif
%macro slversion 4 %macro slversion 4

View File

@ -73,7 +73,7 @@ default rel
section .text section .text
align 16 align 16
global mem_zero_detect_avx:ISAL_SYM_TYPE_FUNCTION mk_global mem_zero_detect_avx, function
func(mem_zero_detect_avx) func(mem_zero_detect_avx)
FUNC_SAVE FUNC_SAVE
mov pos, 0 mov pos, 0

View File

@ -73,7 +73,7 @@ default rel
section .text section .text
align 16 align 16
global mem_zero_detect_sse:ISAL_SYM_TYPE_FUNCTION mk_global mem_zero_detect_sse, function
func(mem_zero_detect_sse) func(mem_zero_detect_sse)
FUNC_SAVE FUNC_SAVE
mov pos, 0 mov pos, 0

View File

@ -122,7 +122,7 @@ default rel
section .text section .text
align 16 align 16
global pq_check_sse:ISAL_SYM_TYPE_FUNCTION mk_global pq_check_sse, function
func(pq_check_sse) func(pq_check_sse)
FUNC_SAVE FUNC_SAVE
sub vec, 3 ;Keep as offset to last source sub vec, 3 ;Keep as offset to last source

View File

@ -141,7 +141,7 @@
section .text section .text
align 16 align 16
global pq_check_sse:ISAL_SYM_TYPE_FUNCTION mk_global pq_check_sse, function
func(pq_check_sse) func(pq_check_sse)
FUNC_SAVE FUNC_SAVE
sub vec, 3 ;Keep as offset to last source sub vec, 3 ;Keep as offset to last source

View File

@ -125,7 +125,7 @@ default rel
section .text section .text
align 16 align 16
global pq_gen_avx:ISAL_SYM_TYPE_FUNCTION mk_global pq_gen_avx, function
func(pq_gen_avx) func(pq_gen_avx)
FUNC_SAVE FUNC_SAVE
sub vec, 3 ;Keep as offset to last source sub vec, 3 ;Keep as offset to last source

View File

@ -126,7 +126,7 @@ default rel
section .text section .text
align 16 align 16
global pq_gen_avx2:ISAL_SYM_TYPE_FUNCTION mk_global pq_gen_avx2, function
func(pq_gen_avx2) func(pq_gen_avx2)
FUNC_SAVE FUNC_SAVE
sub vec, 3 ;Keep as offset to last source sub vec, 3 ;Keep as offset to last source

View File

@ -123,7 +123,7 @@ default rel
section .text section .text
align 16 align 16
global pq_gen_avx512:ISAL_SYM_TYPE_FUNCTION mk_global pq_gen_avx512, function
func(pq_gen_avx512) func(pq_gen_avx512)
FUNC_SAVE FUNC_SAVE
sub vec, 3 ;Keep as offset to last source sub vec, 3 ;Keep as offset to last source

Some files were not shown because too many files have changed in this diff Show More