mirror of
https://github.com/tbamud/tbamud.git
synced 2025-12-26 03:58:49 +01:00
Fix typo in previous commit.
Also, inline lookup functions if possible.
This commit is contained in:
parent
a60f0eefb8
commit
fc223452e8
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue