summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko2021-10-10 14:32:05 +0200
committerDenys Vlasenko2021-10-10 14:32:05 +0200
commitd3dbf4ac05e969b6648faea282df6dec7051e315 (patch)
tree0d4c3c5afa2e38dd74dc272a785d1192e9575fed
parent53b2fdcdba4ced600da963147be425a21d0f6e53 (diff)
downloadbusybox-d3dbf4ac05e969b6648faea282df6dec7051e315.zip
busybox-d3dbf4ac05e969b6648faea282df6dec7051e315.tar.gz
*: add more beneficial NOINLINEs
function old new delta dec_main - 1729 +1729 -41 bytes fallbackQSort3 - 671 +671 -70 bytes verify_sun - 481 +481 -107 bytes verify 1330 742 -588 fallbackSort 1469 728 -741 unpack_xz_stream 2306 536 -1770 ------------------------------------------------------------------------------ (add/remove: 3/0 grow/shrink: 0/3 up/down: 2881/-3099) Total: -218 bytes Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--archival/libarchive/bz/blocksort.c2
-rw-r--r--archival/libarchive/unxz/xz_dec_stream.c2
-rw-r--r--util-linux/fdisk_sun.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/archival/libarchive/bz/blocksort.c b/archival/libarchive/bz/blocksort.c
index 062fd0f..74f9575 100644
--- a/archival/libarchive/bz/blocksort.c
+++ b/archival/libarchive/bz/blocksort.c
@@ -107,7 +107,7 @@ void fallbackSimpleSort(uint32_t* fmap,
#define FALLBACK_QSORT_SMALL_THRESH 10
#define FALLBACK_QSORT_STACK_SIZE 100
-static
+static NOINLINE
void fallbackQSort3(uint32_t* fmap,
uint32_t* eclass,
int32_t loSt,
diff --git a/archival/libarchive/unxz/xz_dec_stream.c b/archival/libarchive/unxz/xz_dec_stream.c
index bf79105..31158b4 100644
--- a/archival/libarchive/unxz/xz_dec_stream.c
+++ b/archival/libarchive/unxz/xz_dec_stream.c
@@ -545,7 +545,7 @@ static enum xz_ret XZ_FUNC dec_block_header(struct xz_dec *s)
return XZ_OK;
}
-static enum xz_ret XZ_FUNC dec_main(struct xz_dec *s, struct xz_buf *b)
+static NOINLINE enum xz_ret XZ_FUNC dec_main(struct xz_dec *s, struct xz_buf *b)
{
enum xz_ret ret;
diff --git a/util-linux/fdisk_sun.c b/util-linux/fdisk_sun.c
index 66e4348..5b7760e 100644
--- a/util-linux/fdisk_sun.c
+++ b/util-linux/fdisk_sun.c
@@ -403,7 +403,7 @@ verify_sun_cmp(int *a, int *b)
return -1;
}
-static void
+static NOINLINE void
verify_sun(void)
{
unsigned starts[8], lens[8], start, stop;