[git commit] bzip2: shrink makeMaps_e()
Denys Vlasenko
vda.linux at googlemail.com
Sat Feb 3 14:31:54 UTC 2018
commit: https://git.busybox.net/busybox/commit/?id=2cfe10a5586abe4f50994f4a0d6a01cc867b8d43
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
function old new delta
generateMTFValues 378 368 -10
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
archival/libarchive/bz/compress.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/archival/libarchive/bz/compress.c b/archival/libarchive/bz/compress.c
index 7efa533b0..0d083486b 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;
}
More information about the busybox-cvs
mailing list