diff --git a/src/dg_scripts.c b/src/dg_scripts.c index 2cf4539..978cf6d 100644 --- a/src/dg_scripts.c +++ b/src/dg_scripts.c @@ -2994,13 +2994,13 @@ void init_lookup_table(void) } } -static struct lookup_table_t *get_bucket_head(long uid) +static inline struct lookup_table_t *get_bucket_head(long uid) { int bucket = (int) (uid & (BUCKET_COUNT - 1)); return &lookup_table[bucket]; } -static struct lookup_table_t *find_element_by_uid_in_lookup_table(long uid) +static inline struct lookup_table_t *find_element_by_uid_in_lookup_table(long uid) { struct lookup_table_t *lt = get_bucket_head(uid);