mirror of
https://github.com/intel/isa-l.git
synced 2025-02-21 06:37:40 +01:00
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:
parent
01dfbcc484
commit
fb13462fac
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user