diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2018-05-18 20:11:38 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2018-05-18 20:54:23 +0200 |
commit | 29adc171b485ff08a737488e84db08eb67a0590a (patch) | |
tree | 3de39a16468eaf220ccc823bc22f10b362cff976 /type_decoder.c | |
parent | a4e9ca6fd0800d3b850f41198bd8049f5a9607de (diff) | |
download | libsigrokdecode-29adc171b485ff08a737488e84db08eb67a0590a.tar.gz libsigrokdecode-29adc171b485ff08a737488e84db08eb67a0590a.zip |
srd_*inst_find_by_obj(): Suggest inlining for performance reasons.
This has a small, but measurable performance benefit.
Diffstat (limited to 'type_decoder.c')
-rw-r--r-- | type_decoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/type_decoder.c b/type_decoder.c index 324d2ef..cff242c 100644 --- a/type_decoder.c +++ b/type_decoder.c @@ -212,7 +212,7 @@ err: return SRD_ERR_PYTHON; } -static struct srd_decoder_inst *srd_sess_inst_find_by_obj( +static inline struct srd_decoder_inst *srd_sess_inst_find_by_obj( struct srd_session *sess, const GSList *stack, const PyObject *obj) { const GSList *l; @@ -249,7 +249,7 @@ static struct srd_decoder_inst *srd_sess_inst_find_by_obj( * * @since 0.1.0 */ -static struct srd_decoder_inst *srd_inst_find_by_obj( +static inline struct srd_decoder_inst *srd_inst_find_by_obj( const GSList *stack, const PyObject *obj) { struct srd_decoder_inst *di; |