wok-tiny diff memtest/stuff/unlzma.S @ rev 170
memtest,plop: tune lzma compression (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 07 15:00:24 2021 +0000 (2021-05-07) |
parents | a88405d94c1e |
children | eb617e43dc08 |
line diff
1.1 --- a/memtest/stuff/unlzma.S Fri Apr 30 16:35:54 2021 +0000 1.2 +++ b/memtest/stuff/unlzma.S Fri May 07 15:00:24 2021 +0000 1.3 @@ -18,7 +18,7 @@ 1.4 * Compression with : lzma e src dst -eos -pb2 -lp0 -lc3 1.5 */ 1.6 1.7 -#define PROP_PB 2 1.8 +#define PROP_PB 3 1.9 #define PROP_LP 0 1.10 #define PROP_LC 3 1.11 #define PROPS (PROP_LC+(PROP_LP*9)+(PROP_PB*45)) 1.12 @@ -195,17 +195,21 @@ 1.13 # else 1.14 shrb $8-PROP_LC, %bl 1.15 # endif 1.16 +#else 1.17 + xor %bx,%bx 1.18 #endif 1.19 1.20 #if PROP_LP != 0 1.21 movb posState2(BP), %dl 1.22 -# ifdef ONLY8086 1.23 +# if PROP_LC != 0 1.24 +# ifdef ONLY8086 1.25 movb $PROP_LC, %cl 1.26 shl %cl, DX 1.27 -# else 1.28 +# else 1.29 shl $PROP_LC, DX 1.30 +# endif 1.31 + movb $0, %bh 1.32 # endif 1.33 - movb $0, %bh 1.34 add BX, DX 1.35 #endif 1.36