From 7da82d555f1d25fdd4c1e7afd849ed2d9fb7ea1d Mon Sep 17 00:00:00 2001 From: Roy Oursler Date: Wed, 25 Jul 2018 17:45:05 -0700 Subject: [PATCH] igzip: Add missing USE_HSWNI defines Change-Id: Ic3f2e1dada0c61e7b78068131fbea37023215844 Signed-off-by: Roy Oursler --- igzip/igzip_body.asm | 7 +++++++ igzip/igzip_icf_body_h1_gr_bt.asm | 8 ++++++++ 2 files changed, 15 insertions(+) diff --git a/igzip/igzip_body.asm b/igzip/igzip_body.asm index 60942a5..be3f192 100644 --- a/igzip/igzip_body.asm +++ b/igzip/igzip_body.asm @@ -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 diff --git a/igzip/igzip_icf_body_h1_gr_bt.asm b/igzip/igzip_icf_body_h1_gr_bt.asm index 9f5a67b..c118880 100644 --- a/igzip/igzip_icf_body_h1_gr_bt.asm +++ b/igzip/igzip_icf_body_h1_gr_bt.asm @@ -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 ( 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