libcuckoo  0.3.1
cuckoohash_config.hh
Go to the documentation of this file.
1 
3 #ifndef _CUCKOOHASH_CONFIG_HH
4 #define _CUCKOOHASH_CONFIG_HH
5 
6 #include <cstddef>
7 #include <limits>
8 
9 namespace libcuckoo {
10 
12 constexpr size_t DEFAULT_SLOT_PER_BUCKET = 4;
13 
15 constexpr size_t DEFAULT_SIZE =
16  (1U << 16) * DEFAULT_SLOT_PER_BUCKET;
17 
22 constexpr double DEFAULT_MINIMUM_LOAD_FACTOR = 0.05;
23 
27 constexpr size_t NO_MAXIMUM_HASHPOWER =
28  std::numeric_limits<size_t>::max();
29 
31 #define LIBCUCKOO_DEBUG 0
32 
33 } // namespace libcuckoo
34 
35 #endif // _CUCKOOHASH_CONFIG_HH
libcuckoo::NO_MAXIMUM_HASHPOWER
constexpr size_t NO_MAXIMUM_HASHPOWER
Definition: cuckoohash_config.hh:27
libcuckoo::DEFAULT_MINIMUM_LOAD_FACTOR
constexpr double DEFAULT_MINIMUM_LOAD_FACTOR
Definition: cuckoohash_config.hh:22
libcuckoo::DEFAULT_SIZE
constexpr size_t DEFAULT_SIZE
The default number of elements in an empty hash table.
Definition: cuckoohash_config.hh:15
libcuckoo::DEFAULT_SLOT_PER_BUCKET
constexpr size_t DEFAULT_SLOT_PER_BUCKET
The default maximum number of keys per bucket.
Definition: cuckoohash_config.hh:12