libbb: introduce and use common crc32 routine
authorDenys Vlasenko <dvlasenk@redhat.com>
Wed, 27 Oct 2010 13:26:45 +0000 (15:26 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Wed, 27 Oct 2010 13:26:45 +0000 (15:26 +0200)
commit9ce642f9746dfc29d119d0680b769677e3ea6da6
treef8d2bcd08c691979058b610b32573a742a3e3024
parentdd88ba88f5082b1785539b1fb87af7320515b8c9
libbb: introduce and use common crc32 routine

function                                             old     new   delta
crc32_block_endian1                                    -      37     +37
crc32_block_endian0                                    -      34     +34
global_crc32_table                                     -       8      +8
file_read                                             82      87      +5
gzip_main                                            211     214      +3
xz_crc32                                              40      35      -5
crc32_table                                            8       -      -8
calculate_gunzip_crc                                  54      34     -20
lzo_crc32                                             54      25     -29
cksum_main                                           298     211     -87
------------------------------------------------------------------------------
(add/remove: 3/1 grow/shrink: 2/4 up/down: 87/-149)           Total: -62 bytes

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
archival/gzip.c
archival/libunarchive/decompress_unxz.c
archival/libunarchive/decompress_unzip.c
archival/lzop.c
coreutils/cksum.c
include/libbb.h
libbb/crc32.c
miscutils/flash_eraseall.c
util-linux/fdisk_gpt.c