decode: Remove inline hint on table_walk()

To avoid GCC warnings when building with `-Os`:

    warning: inlining failed in call to 'table_walk': call is
        unlikely and code size would grow [-Winline]

I don't know if this causes a performance regression when optimizing for
speed instead of size, but perhaps there's a different way we can help
the compiler make this decision in such cases.
This commit is contained in:
Ole André Vadla Ravnås
2022-01-06 00:07:36 +01:00
committed by aengelke
parent 8e56088c6f
commit e98e96c28c

View File

@@ -31,7 +31,7 @@ typedef enum DecodeMode DecodeMode;
#define ENTRY_TABLE_ROOT 8
#define ENTRY_MASK 7
static inline unsigned
static unsigned
table_walk(unsigned cur_idx, unsigned entry_idx, unsigned* out_kind) {
static __attribute__((aligned(16))) const uint16_t _decode_table[] = {
#define FD_DECODE_TABLE_DATA