igzip: Use SHLX and SHRX in encode_df_asm

Change-Id: Ic3165579587c905d8e347b35efa6cbedb5dbf5f3
Signed-off-by: Roy Oursler <roy.j.oursler@intel.com>
This commit is contained in:
Roy Oursler 2016-12-12 15:25:06 -05:00 committed by Greg Tucker
parent 01dfbcc484
commit fb13462fac

View File

@ -102,14 +102,14 @@ encode_deflate_icf_ %+ ARCH:
; sym: 31:24 length; 23:0 code
mov tmp2, sym
and sym, 0xFFFFFF
shl sym, cl
SHLX sym, sym, rcx
shr tmp2, 24
or bits, sym
add rcx, tmp2
; insert dist code
movzx tmp, WORD(dsym)
shl tmp, cl
SHLX tmp, tmp, rcx
or bits, tmp
mov tmp, dsym
shr tmp, 24
@ -118,7 +118,7 @@ encode_deflate_icf_ %+ ARCH:
; insert dist extra bits
shr data, EXTRA_BITS_OFFSET
add ptr, 4
shl data, cl
SHLX data, data, rcx
or bits, data
shr dsym, 16
and dsym, 0xFF
@ -131,7 +131,7 @@ encode_deflate_icf_ %+ ARCH:
add out_buf, tmp
mov tmp, rcx
and rcx, ~7
shr bits, cl
SHRX bits, bits, rcx
mov rcx, tmp
and rcx, 7
@ -146,7 +146,7 @@ encode_deflate_icf_ %+ ARCH:
; add out_buf, tmp
; mov tmp, rcx
; and rcx, ~7
; shr bits, cl
; SHRX bits, bits, rcx
; mov rcx, tmp
; and rcx, 7