diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-02-03 20:19:51 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-02-03 20:19:51 +0100 |
commit | c9ae8d770bf8a21fec962f67b759569b263c68fc (patch) | |
tree | 8f5b7684068200d228f99c1bda3eb3ff81ca971b /archival/libarchive/bz/bzlib_private.h | |
parent | 10f516500ec8bbf2a9fb2ac53f88ba89f7472c17 (diff) | |
download | busybox-w32-c9ae8d770bf8a21fec962f67b759569b263c68fc.tar.gz busybox-w32-c9ae8d770bf8a21fec962f67b759569b263c68fc.tar.bz2 busybox-w32-c9ae8d770bf8a21fec962f67b759569b263c68fc.zip |
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 '')
-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 4acaef8b8..fc05d0ebe 100644 --- a/archival/libarchive/bz/bzlib_private.h +++ b/archival/libarchive/bz/bzlib_private.h | |||
@@ -121,6 +121,7 @@ typedef struct EState { | |||
121 | /* mode this stream is in, and whether inputting */ | 121 | /* mode this stream is in, and whether inputting */ |
122 | /* or outputting data */ | 122 | /* or outputting data */ |
123 | int32_t mode; | 123 | int32_t mode; |
124 | //both smallint? | ||
124 | int32_t state; | 125 | int32_t state; |
125 | 126 | ||
126 | /* remembers avail_in when flush/finish requested */ | 127 | /* remembers avail_in when flush/finish requested */ |
@@ -134,6 +135,9 @@ typedef struct EState { | |||
134 | uint32_t *arr2; | 135 | uint32_t *arr2; |
135 | uint32_t *ftab; | 136 | uint32_t *ftab; |
136 | 137 | ||
138 | uint16_t* quadrant; | ||
139 | int32_t budget; | ||
140 | |||
137 | /* aliases for arr1 and arr2 */ | 141 | /* aliases for arr1 and arr2 */ |
138 | uint32_t *ptr; | 142 | uint32_t *ptr; |
139 | uint8_t *block; | 143 | uint8_t *block; |
@@ -142,6 +146,7 @@ typedef struct EState { | |||
142 | 146 | ||
143 | /* guess what */ | 147 | /* guess what */ |
144 | uint32_t *crc32table; | 148 | uint32_t *crc32table; |
149 | //move down | ||
145 | 150 | ||
146 | /* run-length-encoding of the input */ | 151 | /* run-length-encoding of the input */ |
147 | uint32_t state_in_ch; | 152 | uint32_t state_in_ch; |
@@ -165,6 +170,7 @@ typedef struct EState { | |||
165 | /* misc administratium */ | 170 | /* misc administratium */ |
166 | int32_t blockNo; | 171 | int32_t blockNo; |
167 | int32_t blockSize100k; | 172 | int32_t blockSize100k; |
173 | //smallint? | ||
168 | 174 | ||
169 | /* stuff for coding the MTF values */ | 175 | /* stuff for coding the MTF values */ |
170 | int32_t nMTF; | 176 | int32_t nMTF; |