mirror of
https://github.com/intel/isa-l.git
synced 2025-07-03 17:27:11 +02: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
|
; sym: 31:24 length; 23:0 code
|
||||||
mov tmp2, sym
|
mov tmp2, sym
|
||||||
and sym, 0xFFFFFF
|
and sym, 0xFFFFFF
|
||||||
shl sym, cl
|
SHLX sym, sym, rcx
|
||||||
shr tmp2, 24
|
shr tmp2, 24
|
||||||
or bits, sym
|
or bits, sym
|
||||||
add rcx, tmp2
|
add rcx, tmp2
|
||||||
|
|
||||||
; insert dist code
|
; insert dist code
|
||||||
movzx tmp, WORD(dsym)
|
movzx tmp, WORD(dsym)
|
||||||
shl tmp, cl
|
SHLX tmp, tmp, rcx
|
||||||
or bits, tmp
|
or bits, tmp
|
||||||
mov tmp, dsym
|
mov tmp, dsym
|
||||||
shr tmp, 24
|
shr tmp, 24
|
||||||
@ -118,7 +118,7 @@ encode_deflate_icf_ %+ ARCH:
|
|||||||
; insert dist extra bits
|
; insert dist extra bits
|
||||||
shr data, EXTRA_BITS_OFFSET
|
shr data, EXTRA_BITS_OFFSET
|
||||||
add ptr, 4
|
add ptr, 4
|
||||||
shl data, cl
|
SHLX data, data, rcx
|
||||||
or bits, data
|
or bits, data
|
||||||
shr dsym, 16
|
shr dsym, 16
|
||||||
and dsym, 0xFF
|
and dsym, 0xFF
|
||||||
@ -131,7 +131,7 @@ encode_deflate_icf_ %+ ARCH:
|
|||||||
add out_buf, tmp
|
add out_buf, tmp
|
||||||
mov tmp, rcx
|
mov tmp, rcx
|
||||||
and rcx, ~7
|
and rcx, ~7
|
||||||
shr bits, cl
|
SHRX bits, bits, rcx
|
||||||
mov rcx, tmp
|
mov rcx, tmp
|
||||||
and rcx, 7
|
and rcx, 7
|
||||||
|
|
||||||
@ -146,7 +146,7 @@ encode_deflate_icf_ %+ ARCH:
|
|||||||
; add out_buf, tmp
|
; add out_buf, tmp
|
||||||
; mov tmp, rcx
|
; mov tmp, rcx
|
||||||
; and rcx, ~7
|
; and rcx, ~7
|
||||||
; shr bits, cl
|
; SHRX bits, bits, rcx
|
||||||
; mov rcx, tmp
|
; mov rcx, tmp
|
||||||
; and rcx, 7
|
; and rcx, 7
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user