bzip2: shrink makeMaps_e()

function                                             old     new   delta
generateMTFValues                                    378     368     -10

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2018-02-03 15:31:54 +01:00
parent 1cbcb02316
commit 2cfe10a558

View File

@ -146,13 +146,14 @@ static
void makeMaps_e(EState* s) void makeMaps_e(EState* s)
{ {
int i; int i;
s->nInUse = 0; unsigned cnt = 0;
for (i = 0; i < 256; i++) { for (i = 0; i < 256; i++) {
if (s->inUse[i]) { if (s->inUse[i]) {
s->unseqToSeq[i] = s->nInUse; s->unseqToSeq[i] = cnt;
s->nInUse++; cnt++;
} }
} }
s->nInUse = cnt;
} }