summaryrefslogtreecommitdiffhomepage
path: root/benchmarks/cmap_benchmark.cpp
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-01-30 23:05:36 +0100
committerTyge Løvset <[email protected]>2021-01-30 23:05:36 +0100
commitb3d9e68fa2c2ec9ebe7e3f08045d01db5b720eea (patch)
tree100c3d8b5a2df433efd9cf148d3c66506f1d288b /benchmarks/cmap_benchmark.cpp
parent5c196be3cfa172ca521ced0cf5d9b7d0acec5b83 (diff)
downloadSTC-modified-b3d9e68fa2c2ec9ebe7e3f08045d01db5b720eea.tar.gz
STC-modified-b3d9e68fa2c2ec9ebe7e3f08045d01db5b720eea.zip
Internal changes: removed use of cmap_inits and set_inits. Use cmap_x_init() and cset_X_init(). Minor changes in cvec, csmap, cstr, crandom.
Diffstat (limited to 'benchmarks/cmap_benchmark.cpp')
-rw-r--r--benchmarks/cmap_benchmark.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/cmap_benchmark.cpp b/benchmarks/cmap_benchmark.cpp
index 967c8abe..1f5c6fa1 100644
--- a/benchmarks/cmap_benchmark.cpp
+++ b/benchmarks/cmap_benchmark.cpp
@@ -33,7 +33,7 @@ stc64_t rng;
#define RAND(N) (stc64_rand(&rng) & ((1 << N) - 1))
-#define CMAP_SETUP(X, Key, Value) cmap_##X map = cmap_inits \
+#define CMAP_SETUP(X, Key, Value) cmap_##X map = cmap_##X##_init() \
; cmap_##X##_set_load_factors(&map, 0.0, max_load_factor)
#define CMAP_PUT(X, key, val) cmap_##X##_put(&map, key, val).first->second
#define CMAP_EMPLACE(X, key, val) cmap_##X##_emplace(&map, key, val).first->second