Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/uthash.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,14 @@ do {
#endif

/* initial number of buckets */
#ifndef HASH_INITIAL_NUM_BUCKETS
#define HASH_INITIAL_NUM_BUCKETS 32U /* initial number of buckets */
#endif

#ifndef HASH_INITIAL_NUM_BUCKETS_LOG2
#define HASH_INITIAL_NUM_BUCKETS_LOG2 5U /* lg2 of initial number of buckets */
#endif

#define HASH_BKT_CAPACITY_THRESH 10U /* expand when bucket count reaches */

/* calculate the element whose hash handle address is hhp */
Expand Down