summaryrefslogtreecommitdiffhomepage
path: root/archival/libarchive/bz/bzlib_private.h
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2018-02-03 01:30:12 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2018-02-03 01:30:12 +0100
commite594fb2171a40d6d8f438140440b6c6b1dad5c41 (patch)
treea3ef3ae4a472bd7b76496ec386a0fcc7a4226004 /archival/libarchive/bz/bzlib_private.h
parent125c3ff4b10ee36b757924b3c55b3ac34e902120 (diff)
bzip2: code shrink
function old new delta BZ2_compressBlock 225 230 +5 handle_compress 356 355 -1 bsW16 59 56 -3 bsW 64 61 -3 bsFinishWrite 37 32 -5 prepare_new_block 48 34 -14 ------------------------------------------------------------------------------ (add/remove: 0/0 grow/shrink: 1/5 up/down: 5/-26) Total: -21 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.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/archival/libarchive/bz/bzlib_private.h b/archival/libarchive/bz/bzlib_private.h
index 43e674bec..8e44a8e64 100644
--- a/archival/libarchive/bz/bzlib_private.h
+++ b/archival/libarchive/bz/bzlib_private.h
@@ -150,8 +150,9 @@ typedef struct EState {
/* input and output limits and current posns */
int32_t nblock;
int32_t nblockMAX;
- int32_t numZ;
- int32_t state_out_pos;
+ //int32_t numZ; // index into s->zbits[], replaced by pointer:
+ uint8_t *posZ;
+ uint8_t *state_out_pos;
/* the buffer for bit stream creation */
uint32_t bsBuff;