diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2011-09-10 13:25:57 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2011-09-10 13:25:57 +0200 |
commit | 522041ee7b10ac544b90c6a8d1d4fbf8a5d39c6d (patch) | |
tree | 412854af83f841f564faf842ca6cefc12a016236 /archival/libarchive/bz/compress.c | |
parent | 202a1b9284fd763e81340050d228103aef999675 (diff) | |
download | busybox-w32-522041ee7b10ac544b90c6a8d1d4fbf8a5d39c6d.tar.gz busybox-w32-522041ee7b10ac544b90c6a8d1d4fbf8a5d39c6d.tar.bz2 busybox-w32-522041ee7b10ac544b90c6a8d1d4fbf8a5d39c6d.zip |
regularize options which control size/speed trade
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'archival/libarchive/bz/compress.c')
-rw-r--r-- | archival/libarchive/bz/compress.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/archival/libarchive/bz/compress.c b/archival/libarchive/bz/compress.c index f93671742..e9f1afdaf 100644 --- a/archival/libarchive/bz/compress.c +++ b/archival/libarchive/bz/compress.c | |||
@@ -61,7 +61,7 @@ void bsFinishWrite(EState* s) | |||
61 | /*---------------------------------------------------*/ | 61 | /*---------------------------------------------------*/ |
62 | static | 62 | static |
63 | /* Helps only on level 5, on other levels hurts. ? */ | 63 | /* Helps only on level 5, on other levels hurts. ? */ |
64 | #if CONFIG_BZIP2_FEATURE_SPEED >= 5 | 64 | #if CONFIG_BZIP2_FAST >= 5 |
65 | ALWAYS_INLINE | 65 | ALWAYS_INLINE |
66 | #endif | 66 | #endif |
67 | void bsW(EState* s, int32_t n, uint32_t v) | 67 | void bsW(EState* s, int32_t n, uint32_t v) |
@@ -331,7 +331,7 @@ void sendMTFValues(EState* s) | |||
331 | for (v = 0; v < alphaSize; v++) | 331 | for (v = 0; v < alphaSize; v++) |
332 | s->rfreq[t][v] = 0; | 332 | s->rfreq[t][v] = 0; |
333 | 333 | ||
334 | #if CONFIG_BZIP2_FEATURE_SPEED >= 5 | 334 | #if CONFIG_BZIP2_FAST >= 5 |
335 | /* | 335 | /* |
336 | * Set up an auxiliary length table which is used to fast-track | 336 | * Set up an auxiliary length table which is used to fast-track |
337 | * the common case (nGroups == 6). | 337 | * the common case (nGroups == 6). |
@@ -361,7 +361,7 @@ void sendMTFValues(EState* s) | |||
361 | */ | 361 | */ |
362 | for (t = 0; t < nGroups; t++) | 362 | for (t = 0; t < nGroups; t++) |
363 | cost[t] = 0; | 363 | cost[t] = 0; |
364 | #if CONFIG_BZIP2_FEATURE_SPEED >= 5 | 364 | #if CONFIG_BZIP2_FAST >= 5 |
365 | if (nGroups == 6 && 50 == ge-gs+1) { | 365 | if (nGroups == 6 && 50 == ge-gs+1) { |
366 | /*--- fast track the common case ---*/ | 366 | /*--- fast track the common case ---*/ |
367 | register uint32_t cost01, cost23, cost45; | 367 | register uint32_t cost01, cost23, cost45; |
@@ -420,7 +420,7 @@ void sendMTFValues(EState* s) | |||
420 | * Increment the symbol frequencies for the selected table. | 420 | * Increment the symbol frequencies for the selected table. |
421 | */ | 421 | */ |
422 | /* 1% faster compress. +800 bytes */ | 422 | /* 1% faster compress. +800 bytes */ |
423 | #if CONFIG_BZIP2_FEATURE_SPEED >= 4 | 423 | #if CONFIG_BZIP2_FAST >= 4 |
424 | if (nGroups == 6 && 50 == ge-gs+1) { | 424 | if (nGroups == 6 && 50 == ge-gs+1) { |
425 | /*--- fast track the common case ---*/ | 425 | /*--- fast track the common case ---*/ |
426 | #define BZ_ITUR(nn) s->rfreq[bt][mtfv[gs + (nn)]]++ | 426 | #define BZ_ITUR(nn) s->rfreq[bt][mtfv[gs + (nn)]]++ |