summaryrefslogtreecommitdiff
path: root/archival/libarchive
diff options
context:
space:
mode:
authorDenys Vlasenko2018-02-03 15:31:54 +0100
committerDenys Vlasenko2018-02-03 15:31:54 +0100
commit2cfe10a5586abe4f50994f4a0d6a01cc867b8d43 (patch)
treef62e46464ade9c5e0bfdbd36754e8e6f73a5aaf3 /archival/libarchive
parent1cbcb023169abdb7ca278ae7c589c6f9fb60ca03 (diff)
downloadbusybox-2cfe10a5586abe4f50994f4a0d6a01cc867b8d43.zip
busybox-2cfe10a5586abe4f50994f4a0d6a01cc867b8d43.tar.gz
bzip2: shrink makeMaps_e()
function old new delta generateMTFValues 378 368 -10 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/libarchive')
-rw-r--r--archival/libarchive/bz/compress.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/archival/libarchive/bz/compress.c b/archival/libarchive/bz/compress.c
index 7efa533..0d08348 100644
--- a/archival/libarchive/bz/compress.c
+++ b/archival/libarchive/bz/compress.c
@@ -146,13 +146,14 @@ static
void makeMaps_e(EState* s)
{
int i;
- s->nInUse = 0;
+ unsigned cnt = 0;
for (i = 0; i < 256; i++) {
if (s->inUse[i]) {
- s->unseqToSeq[i] = s->nInUse;
- s->nInUse++;
+ s->unseqToSeq[i] = cnt;
+ cnt++;
}
}
+ s->nInUse = cnt;
}