summaryrefslogtreecommitdiffhomepage
path: root/examples/benchmark.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-07-28 07:12:23 +0200
committerTyge Løvset <[email protected]>2020-07-28 07:12:23 +0200
commit3112061bd5cc45a175f230ef3458a4bc06c5c5a2 (patch)
tree57b2b9f3f0184bdf670787dfa48feff212782f0d /examples/benchmark.c
parent6a0b7f1f43f408887e83fc45452dc133496227b4 (diff)
downloadSTC-modified-3112061bd5cc45a175f230ef3458a4bc06c5c5a2.tar.gz
STC-modified-3112061bd5cc45a175f230ef3458a4bc06c5c5a2.zip
Reverted to before lowercasing types
Diffstat (limited to 'examples/benchmark.c')
-rw-r--r--examples/benchmark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/benchmark.c b/examples/benchmark.c
index 8b9f33c2..c9a82d6d 100644
--- a/examples/benchmark.c
+++ b/examples/benchmark.c
@@ -14,7 +14,7 @@
// Visual Studio: compile with -TP to force C++: cl -TP -EHsc -O2 benchmark.c
-declare_cmap(ii, int64_t, int64_t, c_defaultDestroy, c_defaultEquals, c_fibonacciHash64);
+declare_CMap(ii, int64_t, int64_t, c_defaultDestroy, c_defaultEquals, c_fibonacciHash64);
KHASH_MAP_INIT_INT64(ii, uint64_t)
@@ -26,7 +26,7 @@ crandom64_t rng;
#define RAND(N) (crandom64(&rng) & ((1 << N) - 1))
-#define CMAP_SETUP(tag, Key, Value) cmap_##tag map = cmap_init \
+#define CMAP_SETUP(tag, Key, Value) CMap_##tag map = cmap_init \
; cmap_##tag##_setLoadFactors(&map, maxLoadFactor, 0.0)
#define CMAP_PUT(tag, key, val) cmap_##tag##_put(&map, key, val)->value
#define CMAP_ERASE(tag, key) cmap_##tag##_erase(&map, key)