diff --git a/src/uthash.h b/src/uthash.h index 06c2eeb..e1dc068 100644 --- a/src/uthash.h +++ b/src/uthash.h @@ -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 */