diff options
author | Ron Yorston <rmy@pobox.com> | 2024-04-18 09:18:54 +0100 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2024-04-18 09:18:54 +0100 |
commit | d93104502dac767997d7804c900d8da20f1264f8 (patch) | |
tree | ce4bf796daef6d06a08af6e43650dc90db5d6a2c | |
parent | 7e09f7ce4e0d99b0e54684e5cc506e1532db392f (diff) | |
download | busybox-w32-d93104502dac767997d7804c900d8da20f1264f8.tar.gz busybox-w32-d93104502dac767997d7804c900d8da20f1264f8.tar.bz2 busybox-w32-d93104502dac767997d7804c900d8da20f1264f8.zip |
free: bloat reduction
Allow the compiler to inline parse_meminfo() so it can spot some
optimisations.
Saves 208-240 bytes.
-rw-r--r-- | procps/free.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/procps/free.c b/procps/free.c index 88ec0c755..90b4af702 100644 --- a/procps/free.c +++ b/procps/free.c | |||
@@ -105,7 +105,7 @@ static NOINLINE unsigned int parse_meminfo(struct globals *g) | |||
105 | return seen_cached_and_available_and_reclaimable == 0; | 105 | return seen_cached_and_available_and_reclaimable == 0; |
106 | } | 106 | } |
107 | #else | 107 | #else |
108 | static NOINLINE unsigned int parse_meminfo(struct globals *g) | 108 | static unsigned int parse_meminfo(struct globals *g) |
109 | { | 109 | { |
110 | g->cached_kb = g->available_kb = g->reclaimable_kb = 0; | 110 | g->cached_kb = g->available_kb = g->reclaimable_kb = 0; |
111 | 111 | ||