diff options
author | Denys Vlasenko | 2018-02-03 20:19:51 +0100 |
---|---|---|
committer | Denys Vlasenko | 2018-02-03 20:19:51 +0100 |
commit | c9ae8d770bf8a21fec962f67b759569b263c68fc (patch) | |
tree | 8f5b7684068200d228f99c1bda3eb3ff81ca971b /archival/libarchive/bz/bzlib_private.h | |
parent | 10f516500ec8bbf2a9fb2ac53f88ba89f7472c17 (diff) | |
download | busybox-c9ae8d770bf8a21fec962f67b759569b263c68fc.zip busybox-c9ae8d770bf8a21fec962f67b759569b263c68fc.tar.gz |
bzip2: pass sorting params through EState* pointer
function old new delta
mainGtU 499 515 +16
sendMTFValues 2085 2094 +9
mainSort 1116 1119 +3
generateMTFValues 357 356 -1
fallbackSort 1719 1705 -14
mainQSort3 1163 1141 -22
BZ2_blockSort 118 85 -33
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 3/4 up/down: 28/-70) Total: -42 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/libarchive/bz/bzlib_private.h')
-rw-r--r-- | archival/libarchive/bz/bzlib_private.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/archival/libarchive/bz/bzlib_private.h b/archival/libarchive/bz/bzlib_private.h index 4acaef8..fc05d0e 100644 --- a/archival/libarchive/bz/bzlib_private.h +++ b/archival/libarchive/bz/bzlib_private.h @@ -121,6 +121,7 @@ typedef struct EState { /* mode this stream is in, and whether inputting */ /* or outputting data */ int32_t mode; +//both smallint? int32_t state; /* remembers avail_in when flush/finish requested */ @@ -134,6 +135,9 @@ typedef struct EState { uint32_t *arr2; uint32_t *ftab; + uint16_t* quadrant; + int32_t budget; + /* aliases for arr1 and arr2 */ uint32_t *ptr; uint8_t *block; @@ -142,6 +146,7 @@ typedef struct EState { /* guess what */ uint32_t *crc32table; +//move down /* run-length-encoding of the input */ uint32_t state_in_ch; @@ -165,6 +170,7 @@ typedef struct EState { /* misc administratium */ int32_t blockNo; int32_t blockSize100k; +//smallint? /* stuff for coding the MTF values */ int32_t nMTF; |