gzip: code shrink
authorDenys Vlasenko <vda.linux@googlemail.com>
Fri, 6 Sep 2019 15:56:57 +0000 (17:56 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Fri, 6 Sep 2019 15:59:45 +0000 (17:59 +0200)
commitd327c6b190900dcb0cb7cda9008eb4f9893a92d8
tree48d6cbbe27e260b01001326637f9f9e8905c906a
parent81a708393d851b6b35c9bc3efe0e76ae696c07cc
gzip: code shrink

Converted a few 16-bit variables and small arrays to 32-bit.

Stopped pulling desc->FOO members into temporary local variables
in gen_bitlen(): on register-starved arches, this is a loss,
temporaries go into stack slots.

Sprinkled a few "const" on pointer arguments.

function                                             old     new   delta
pack_gzip                                            742     745      +3
gen_codes                                            101      97      -4
build_tree                                           886     833     -53
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 1/2 up/down: 3/-57)             Total: -54 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
archival/gzip.c