diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-02-03 02:03:42 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-02-03 02:03:42 +0100 |
| commit | 359230da8ea92d980ec2a852754e8e63aa893f73 (patch) | |
| tree | 4263a8d8a614db1515c76558894fbf13886b3490 | |
| parent | e594fb2171a40d6d8f438140440b6c6b1dad5c41 (diff) | |
| download | busybox-w32-359230da8ea92d980ec2a852754e8e63aa893f73.tar.gz busybox-w32-359230da8ea92d980ec2a852754e8e63aa893f73.tar.bz2 busybox-w32-359230da8ea92d980ec2a852754e8e63aa893f73.zip | |
bzip2: code shrink
function old new delta
sendMTFValues 2111 2100 -11
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
| -rw-r--r-- | archival/libarchive/bz/compress.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/archival/libarchive/bz/compress.c b/archival/libarchive/bz/compress.c index 534cf665a..992fd5884 100644 --- a/archival/libarchive/bz/compress.c +++ b/archival/libarchive/bz/compress.c | |||
| @@ -289,11 +289,16 @@ void sendMTFValues(EState* s) | |||
| 289 | 289 | ||
| 290 | /*--- Decide how many coding tables to use ---*/ | 290 | /*--- Decide how many coding tables to use ---*/ |
| 291 | AssertH(s->nMTF > 0, 3001); | 291 | AssertH(s->nMTF > 0, 3001); |
| 292 | if (s->nMTF < 200) nGroups = 2; else | 292 | // 1..199 = 2 |
| 293 | if (s->nMTF < 600) nGroups = 3; else | 293 | // 200..599 = 3 |
| 294 | if (s->nMTF < 1200) nGroups = 4; else | 294 | // 600..1199 = 4 |
| 295 | if (s->nMTF < 2400) nGroups = 5; else | 295 | // 1200..2399 = 5 |
| 296 | nGroups = 6; | 296 | // else 6 |
| 297 | nGroups = 2; | ||
| 298 | nGroups += (s->nMTF >= 200); | ||
| 299 | nGroups += (s->nMTF >= 600); | ||
| 300 | nGroups += (s->nMTF >= 1200); | ||
| 301 | nGroups += (s->nMTF >= 2400); | ||
| 297 | 302 | ||
| 298 | /*--- Generate an initial set of coding tables ---*/ | 303 | /*--- Generate an initial set of coding tables ---*/ |
| 299 | { | 304 | { |
