save 4 bytes in __LZMA_ELF00__
This commit is contained in:
+511
-511
File diff suppressed because it is too large
Load Diff
+518
-518
File diff suppressed because it is too large
Load Diff
+523
-524
File diff suppressed because it is too large
Load Diff
+638
-638
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
+574
-574
File diff suppressed because it is too large
Load Diff
@@ -93,24 +93,22 @@ LZMA_LIT_SIZE equ 768
|
|||||||
|
|
||||||
mov ebp, esp ; save stack
|
mov ebp, esp ; save stack
|
||||||
|
|
||||||
xor eax,eax ; 0
|
xor eax,eax ; 0
|
||||||
lodsb ; al= 1 byte for LzmaDecodeProperties()
|
lodsb ; al= 1 byte for LzmaDecodeProperties()
|
||||||
mov dl,9
|
mov dl,9
|
||||||
div dl ; (ah:rem, al:quo)= ax / dl
|
div dl ; (ah:rem, al:quo)= ax / dl
|
||||||
mov cl,ah ; cl = lit_context_bits
|
mov cl,ah ; cl = lit_context_bits
|
||||||
movzx eax,al ; 1st_byte / 9
|
mov ah,0 ; ax= 1st_byte / 9
|
||||||
mov dl,5
|
mov dl,5
|
||||||
div dl ; ah= lit_pos_bits; al= pos_bits
|
div dl ; ah= lit_pos_bits; al= pos_bits
|
||||||
mov ch,cl ; ch = lit_context_bits
|
mov ch,cl ; ch = lit_context_bits
|
||||||
|
|
||||||
add cl,ah ; cl = lit_context_bits + lit_pos_bits;
|
add cl,ah ; cl = lit_context_bits + lit_pos_bits;
|
||||||
mov ebx, -LZMA_LIT_SIZE
|
mov ebx, -LZMA_LIT_SIZE
|
||||||
sal ebx, cl
|
sal ebx, cl
|
||||||
add ebx, -LZMA_BASE_SIZE
|
|
||||||
|
|
||||||
; /* inSizeProcessed, outSizeProcessed, *_bits, CLzmaDecoderState */
|
; /* inSizeProcessed, outSizeProcessed, *_bits, CLzmaDecoderState */
|
||||||
lea ebx,[-(2*4 +4) + 2*ebx + esp]
|
lea ebx,[-(2*4 +4) + 2*(-LZMA_BASE_SIZE + ebx) + esp]
|
||||||
and ebx, byte (~0<<4) ; 16-byte align
|
and ebx, byte (~0<<5) ; 32-byte align
|
||||||
.elf_clearstack1:
|
.elf_clearstack1:
|
||||||
push byte 0
|
push byte 0
|
||||||
cmp esp,ebx
|
cmp esp,ebx
|
||||||
|
|||||||
Reference in New Issue
Block a user