*: 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>
This commit is contained in:
Denys Vlasenko 2021-10-10 14:32:05 +02:00
parent 53b2fdcdba
commit d3dbf4ac05
3 changed files with 3 additions and 3 deletions

View File

@ -107,7 +107,7 @@ void fallbackSimpleSort(uint32_t* fmap,
#define FALLBACK_QSORT_SMALL_THRESH 10 #define FALLBACK_QSORT_SMALL_THRESH 10
#define FALLBACK_QSORT_STACK_SIZE 100 #define FALLBACK_QSORT_STACK_SIZE 100
static static NOINLINE
void fallbackQSort3(uint32_t* fmap, void fallbackQSort3(uint32_t* fmap,
uint32_t* eclass, uint32_t* eclass,
int32_t loSt, int32_t loSt,

View File

@ -545,7 +545,7 @@ static enum xz_ret XZ_FUNC dec_block_header(struct xz_dec *s)
return XZ_OK; 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; enum xz_ret ret;

View File

@ -403,7 +403,7 @@ verify_sun_cmp(int *a, int *b)
return -1; return -1;
} }
static void static NOINLINE void
verify_sun(void) verify_sun(void)
{ {
unsigned starts[8], lens[8], start, stop; unsigned starts[8], lens[8], start, stop;