]> sigrok.org Git - libsigrokdecode.git/commitdiff
sample_matches(): Force inlining for performance reasons.
authorUwe Hermann <redacted>
Fri, 18 May 2018 07:01:40 +0000 (09:01 +0200)
committerUwe Hermann <redacted>
Fri, 18 May 2018 14:48:56 +0000 (16:48 +0200)
instance.c

index ab1e0a21d0b9b199e73a622418e1ce8e0b14fcc5..db6cbcaf9fb8d80351f100ac68d9f6b2227a9927 100644 (file)
@@ -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. */