diff options
author | Denys Vlasenko | 2021-10-10 13:50:53 +0200 |
---|---|---|
committer | Denys Vlasenko | 2021-10-10 13:50:53 +0200 |
commit | 53b2fdcdba4ced600da963147be425a21d0f6e53 (patch) | |
tree | 6ff4eb40af61e978fc35fc320a10e0c012993bba /networking | |
parent | 5156b245536ce0f07165793f07c63fd9fa5dd3b7 (diff) | |
download | busybox-53b2fdcdba4ced600da963147be425a21d0f6e53.zip busybox-53b2fdcdba4ced600da963147be425a21d0f6e53.tar.gz |
*: add NOINLINEs where code noticeably shrinks
function old new delta
display 85 1463 +1378 -73 bytes
select_and_cluster - 1088 +1088 -139 bytes
parse_reply - 979 +979 -109 bytes
zbc_num_sqrt - 632 +632 -191 bytes
show_bridge_port - 585 +585 -56 bytes
sp_256_proj_point_add_8 - 576 +576 -45 bytes
encode_then_append_var_plusminus - 554 +554 -118 bytes
read_mode_db - 537 +537 -47 bytes
fbset_main 1331 747 -584
sp_256_ecc_mulmod_8 1157 536 -621
brctl_main 2189 1548 -641
expand_one_var 2544 1872 -672
zxc_vm_process 6412 5589 -823
send_queries 1813 725 -1088
recv_and_process_peer_pkt 2245 1018 -1227
bb_dump_dump 1531 80 -1451
------------------------------------------------------------------------------
(add/remove: 7/0 grow/shrink: 1/8 up/down: 6329/-7107) Total: -778 bytes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
-rw-r--r-- | networking/brctl.c | 2 | ||||
-rw-r--r-- | networking/nslookup.c | 2 | ||||
-rw-r--r-- | networking/ntpd.c | 2 | ||||
-rw-r--r-- | networking/tls_sp_c32.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/networking/brctl.c b/networking/brctl.c index c83aac6..956bd91 100644 --- a/networking/brctl.c +++ b/networking/brctl.c @@ -318,7 +318,7 @@ static void printf_xstrtou(const char *fmt) printf(fmt, xstrtou(filedata, 0)); } -static void show_bridge_port(const char *name) +static NOINLINE void show_bridge_port(const char *name) { char pathbuf[IFNAMSIZ + sizeof("/brport/forward_delay_timer") + 8]; char *sfx; diff --git a/networking/nslookup.c b/networking/nslookup.c index de7b5c0..6da97ba 100644 --- a/networking/nslookup.c +++ b/networking/nslookup.c @@ -335,7 +335,7 @@ enum { OPT_debug = (1 << 0), }; -static int parse_reply(const unsigned char *msg, size_t len) +static NOINLINE int parse_reply(const unsigned char *msg, size_t len) { HEADER *header; diff --git a/networking/ntpd.c b/networking/ntpd.c index 5bd4d2d..204e1d7 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c @@ -1152,7 +1152,7 @@ fit(peer_t *p, double rd) // return 0; return 1; } -static peer_t* +static NOINLINE peer_t* select_and_cluster(void) { peer_t *p; diff --git a/networking/tls_sp_c32.c b/networking/tls_sp_c32.c index 4c0cd32..4d4ecdd 100644 --- a/networking/tls_sp_c32.c +++ b/networking/tls_sp_c32.c @@ -1162,7 +1162,7 @@ static void sp_256_proj_point_dbl_8(sp_point* r, sp_point* p) * p Frist point to add. * q Second point to add. */ -static void sp_256_proj_point_add_8(sp_point* r, sp_point* p, sp_point* q) +static NOINLINE void sp_256_proj_point_add_8(sp_point* r, sp_point* p, sp_point* q) { sp_digit t1[2*8]; sp_digit t2[2*8]; |