diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-02-01 10:56:19 +0100 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-02-01 10:56:19 +0100 |
| commit | ddacb03e875dd4c1a79421d030da9cdc4f081e6e (patch) | |
| tree | 5fef3dda6eb881153d8acef87a297fc75223398e /miscutils | |
| parent | 06076494da41755893a6e072bbd9889581a9e9d1 (diff) | |
| download | busybox-w32-ddacb03e875dd4c1a79421d030da9cdc4f081e6e.tar.gz busybox-w32-ddacb03e875dd4c1a79421d030da9cdc4f081e6e.tar.bz2 busybox-w32-ddacb03e875dd4c1a79421d030da9cdc4f081e6e.zip | |
libbb: commonalize a bit of little-endian CRC32 table generation code
function old new delta
global_crc32_new_table_le - 11 +11
crc32_new_table_le - 9 +9
inflate_unzip_internal 560 556 -4
flash_eraseall_main 823 819 -4
unpack_xz_stream 2403 2394 -9
lzop_main 121 112 -9
gzip_main 187 178 -9
------------------------------------------------------------------------------
(add/remove: 2/0 grow/shrink: 0/5 up/down: 20/-35) Total: -15 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
| -rw-r--r-- | miscutils/flash_eraseall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/flash_eraseall.c b/miscutils/flash_eraseall.c index fab21291c..8e93060ca 100644 --- a/miscutils/flash_eraseall.c +++ b/miscutils/flash_eraseall.c | |||
| @@ -101,7 +101,7 @@ int flash_eraseall_main(int argc UNUSED_PARAM, char **argv) | |||
| 101 | if (flags & OPTION_J) { | 101 | if (flags & OPTION_J) { |
| 102 | uint32_t *crc32_table; | 102 | uint32_t *crc32_table; |
| 103 | 103 | ||
| 104 | crc32_table = crc32_filltable(NULL, 0); | 104 | crc32_table = crc32_new_table_le(); |
| 105 | 105 | ||
| 106 | cleanmarker.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); | 106 | cleanmarker.magic = cpu_to_je16(JFFS2_MAGIC_BITMASK); |
| 107 | cleanmarker.nodetype = cpu_to_je16(JFFS2_NODETYPE_CLEANMARKER); | 107 | cleanmarker.nodetype = cpu_to_je16(JFFS2_NODETYPE_CLEANMARKER); |
