diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2013-09-06 12:53:14 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2013-09-06 12:53:14 +0200 |
commit | a407cf74cc43c3cc26168e259cee469a4787a76c (patch) | |
tree | 2306029e1ea7b957825b55e3728d23c886da58dd /include | |
parent | d6ae4fb446daedfe3073d67be655942e9fa7eb18 (diff) | |
download | busybox-w32-a407cf74cc43c3cc26168e259cee469a4787a76c.tar.gz busybox-w32-a407cf74cc43c3cc26168e259cee469a4787a76c.tar.bz2 busybox-w32-a407cf74cc43c3cc26168e259cee469a4787a76c.zip |
Make smart_ulltoa return pointer to end (allows for code shink in callers)
function old new delta
smart_ulltoa5 405 408 +3
smart_ulltoa4 273 276 +3
list_table 1113 1114 +1
scale 36 34 -2
put_lu 55 53 -2
ulltoa6_and_space 19 14 -5
powertop_main 1470 1461 -9
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/libbb.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/libbb.h b/include/libbb.h index 6b95dc0ec..1315e5f8f 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -815,8 +815,8 @@ char *itoa(int n) FAST_FUNC; | |||
815 | char *utoa_to_buf(unsigned n, char *buf, unsigned buflen) FAST_FUNC; | 815 | char *utoa_to_buf(unsigned n, char *buf, unsigned buflen) FAST_FUNC; |
816 | char *itoa_to_buf(int n, char *buf, unsigned buflen) FAST_FUNC; | 816 | char *itoa_to_buf(int n, char *buf, unsigned buflen) FAST_FUNC; |
817 | /* Intelligent formatters of bignums */ | 817 | /* Intelligent formatters of bignums */ |
818 | void smart_ulltoa4(unsigned long long ul, char buf[4], const char *scale) FAST_FUNC; | 818 | char *smart_ulltoa4(unsigned long long ul, char buf[4], const char *scale) FAST_FUNC; |
819 | void smart_ulltoa5(unsigned long long ul, char buf[5], const char *scale) FAST_FUNC; | 819 | char *smart_ulltoa5(unsigned long long ul, char buf[5], const char *scale) FAST_FUNC; |
820 | /* If block_size == 0, display size without fractional part, | 820 | /* If block_size == 0, display size without fractional part, |
821 | * else display (size * block_size) with one decimal digit. | 821 | * else display (size * block_size) with one decimal digit. |
822 | * If display_unit == 0, show value no bigger than 1024 with suffix (K,M,G...), | 822 | * If display_unit == 0, show value no bigger than 1024 with suffix (K,M,G...), |