summaryrefslogtreecommitdiff
path: root/instance.c
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2018-05-18 09:01:40 +0200
committerUwe Hermann <uwe@hermann-uwe.de>2018-05-18 16:48:56 +0200
commit9337ab8aff2ddcba3ad57eec78df35c86221fc82 (patch)
treeb1d66400fab12061ce726ffd040fb4d002b55035 /instance.c
parent4ccebbd355fb53177dcc46476a5e5105f4859410 (diff)
downloadlibsigrokdecode-9337ab8aff2ddcba3ad57eec78df35c86221fc82.tar.gz
libsigrokdecode-9337ab8aff2ddcba3ad57eec78df35c86221fc82.zip
sample_matches(): Force inlining for performance reasons.
Diffstat (limited to 'instance.c')
-rw-r--r--instance.c3
1 files changed, 2 insertions, 1 deletions
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. */