diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2018-05-18 09:01:40 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-05-18 16:48:56 +0200 |
commit | 9337ab8aff2ddcba3ad57eec78df35c86221fc82 (patch) | |
tree | b1d66400fab12061ce726ffd040fb4d002b55035 /instance.c | |
parent | 4ccebbd355fb53177dcc46476a5e5105f4859410 (diff) | |
download | libsigrokdecode-9337ab8aff2ddcba3ad57eec78df35c86221fc82.tar.gz libsigrokdecode-9337ab8aff2ddcba3ad57eec78df35c86221fc82.zip |
sample_matches(): Force inlining for performance reasons.
Diffstat (limited to 'instance.c')
-rw-r--r-- | instance.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -771,7 +771,8 @@ SRD_PRIV int srd_inst_start(struct srd_decoder_inst *di) * * @private */ -static gboolean sample_matches(uint8_t old_sample, uint8_t sample, struct srd_term *term) +__attribute__((always_inline)) +static inline gboolean sample_matches(uint8_t old_sample, uint8_t sample, struct srd_term *term) { /* Caller ensures term != NULL. */ |