From e594fb2171a40d6d8f438140440b6c6b1dad5c41 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sat, 3 Feb 2018 01:30:12 +0100 Subject: 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 --- archival/libarchive/bz/bzlib_private.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'archival/libarchive/bz/bzlib_private.h') 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; -- cgit v1.2.3