Fix typo in previous commit.
Also, inline lookup functions if possible.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user