From 658019e1e53ad1ccbca5c623b7199c445eab8b86 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Sat, 11 Sep 2021 22:15:43 +0200 Subject: Updated benchmarks to newstyle. --- benchmarks/shootout2_cmap.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'benchmarks/shootout2_cmap.cpp') diff --git a/benchmarks/shootout2_cmap.cpp b/benchmarks/shootout2_cmap.cpp index 7c1595f3..669c336c 100644 --- a/benchmarks/shootout2_cmap.cpp +++ b/benchmarks/shootout2_cmap.cpp @@ -2,7 +2,6 @@ #include #include #include -#include #include "others/khash.h" #ifdef __cplusplus @@ -18,7 +17,12 @@ template inline void destroy_me(C& c) { C().swap(c); } // Visual Studio: compile with -TP to force C++: cl -TP -EHsc -O2 benchmark.c // cmap and khash template expansion -using_cmap(ii, int64_t, int64_t, c_default_equals, c_default_hash64); // c_default_hash); +#define i_tag ii +#define i_key int64_t +#define i_val int64_t +#define i_cmp c_default_hash64 +#include + KHASH_MAP_INIT_INT64(ii, int64_t) -- cgit v1.2.3