OSDN Git Service

libbb/human_readable.c: shrink; and reduce bss usage
authorDenys Vlasenko <vda.linux@googlemail.com>
Mon, 12 Oct 2009 23:25:09 +0000 (01:25 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Mon, 12 Oct 2009 23:25:09 +0000 (01:25 +0200)
commit0bf44d00a42dec70514c2e51926f4ca37b4b2367
treebe01fbf44da8040c5ef271e0d0bba147ce0c525e
parent76ace254e171ee9ca7a13f36335ccad9cc6ae6e1
libbb/human_readable.c: shrink; and reduce bss usage

also, move smart_ulltoaN there and comment usage locations

function                                             old     new   delta
static.unit_chars                                      7       9      +2
utoa_to_buf                                          110     108      -2
make_human_readable_str                              262     258      -4
fallbackSort                                        1723    1719      -4
static.fmt                                            97      92      -5
static.fmt_tenths                                     10       -     -10
static.str                                            21       4     -17
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/5 up/down: 2/-42)             Total: -40 bytes
   text    data     bss     dec     hex filename
 820981     453    6932  828366   ca3ce busybox_old
 820968     453    6916  828337   ca3b1 busybox_unstripped

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
coreutils/df.c
coreutils/du.c
coreutils/ls.c
include/libbb.h
libbb/human_readable.c
libbb/xfuncs.c