multiplier suffixes are short, store them directly in struct suffix_mult

function                                             old     new   delta
xstrtoul_range_sfx                                   226     217      -9
xstrtoull_range_sfx                                  291     280     -11
------------------------------------------------------------------------------
(add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-20)             Total: -20 bytes
   text    data     bss     dec     hex filename
 669128    2668   13616  685412   a7564 busybox_old
 669108    2668   13616  685392   a7550 busybox_unstripped
This commit is contained in:
Denis Vlasenko
2007-07-27 15:06:25 +00:00
parent 7587870617
commit f868963c67
11 changed files with 25 additions and 25 deletions

View File

@ -48,10 +48,10 @@ static const char add_first[] = "\"%07.7_Ax\n\"";
static const char hexdump_opts[] = "bcdoxCe:f:n:s:v";
static const struct suffix_mult suffixes[] = {
{ "b", 512 },
{ "k", 1024 },
{ "m", 1024*1024 },
{ NULL, 0 }
{ "b", 512 },
{ "k", 1024 },
{ "m", 1024*1024 },
{ }
};
int hexdump_main(int argc, char **argv);