summaryrefslogtreecommitdiffhomepage
path: root/misc/benchmarks/shootout_hashmaps.cpp
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-03-29 18:23:54 +0200
committerTyge Løvset <[email protected]>2023-03-29 18:23:54 +0200
commit9a88ddd9cbf4c33664de258bcb5bcef6a746149a (patch)
tree41a07d6030e57a59fd0310ff98adebc299339d5b /misc/benchmarks/shootout_hashmaps.cpp
parent97d205f7ba096a9872afbce5e696a8806d7b72d1 (diff)
downloadSTC-modified-9a88ddd9cbf4c33664de258bcb5bcef6a746149a.tar.gz
STC-modified-9a88ddd9cbf4c33664de258bcb5bcef6a746149a.zip
Some optimizations in hash func.
Diffstat (limited to 'misc/benchmarks/shootout_hashmaps.cpp')
-rw-r--r--misc/benchmarks/shootout_hashmaps.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/misc/benchmarks/shootout_hashmaps.cpp b/misc/benchmarks/shootout_hashmaps.cpp
index 39ad1786..947a35b4 100644
--- a/misc/benchmarks/shootout_hashmaps.cpp
+++ b/misc/benchmarks/shootout_hashmaps.cpp
@@ -35,6 +35,7 @@ KHASH_MAP_INIT_INT64(ii, IValue)
// cmap template expansion
#define i_key IKey
#define i_val IValue
+#define i_ssize int32_t // enable 2^K buckets like the rest.
#define i_tag ii
#define i_max_load_factor MAX_LOAD_FACTOR / 100.0f
#include <stc/cmap.h>