From: Uwe Hermann Date: Fri, 18 May 2018 07:01:40 +0000 (+0200) Subject: sample_matches(): Force inlining for performance reasons. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9337ab8aff2ddcba3ad57eec78df35c86221fc82;p=libsigrokdecode.git sample_matches(): Force inlining for performance reasons. --- diff --git a/instance.c b/instance.c index ab1e0a2..db6cbca 100644 --- a/instance.c +++ b/instance.c @@ -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. */