igzip: Add missing USE_HSWNI defines

Change-Id: Ic3f2e1dada0c61e7b78068131fbea37023215844
Signed-off-by: Roy Oursler <roy.j.oursler@intel.com>
This commit is contained in:
Roy Oursler 2018-07-25 17:45:05 -07:00 committed by Greg Tucker
parent cfa1400557
commit 7da82d555f
2 changed files with 15 additions and 0 deletions

View File

@ -125,6 +125,9 @@ stack_size equ 2*8 + 8*8 + 4*16 + 8
%endif
%rep 3
%if ARCH == 04
%define USE_HSWNI
%endif
; void isal_deflate_body ( isal_zstream *stream )
; arg 1: rcx: addr of stream
global isal_deflate_body_ %+ ARCH
@ -543,6 +546,10 @@ isal_deflate_body_ %+ ARCH %+ :
get_lit_code curr_data, code2, code_len2, hufftables
jmp .write_lit_bits
%ifdef USE_HSWNI
%undef USE_HSWNI
%endif
;; Shift defines over in order to iterate over all versions
%undef ARCH
%xdefine ARCH ARCH1

View File

@ -132,6 +132,10 @@ stack_size equ 5*8 + 8*8 + 4*16
%xdefine METHOD1 hash_hist
%rep 2
%if ARCH == 04
%define USE_HSWNI
%endif
; void isal_deflate_icf_body <hashsize> <arch> ( isal_zstream *stream )
; we make 6 different versions of this function
; arg 1: rcx: addr of stream
@ -516,6 +520,10 @@ isal_deflate_icf_body_ %+ METHOD %+ _ %+ ARCH %+ :
jmp .input_end
%ifdef USE_HSWNI
%undef USE_HSWNI
%endif
;; Shift defines over in order to iterate over all versions
%undef HASH_MASK
%xdefine HASH_MASK HASH_MASK1