diff options
| author | Tyge Løvset <[email protected]> | 2021-09-11 22:15:43 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-09-11 22:15:43 +0200 |
| commit | 658019e1e53ad1ccbca5c623b7199c445eab8b86 (patch) | |
| tree | 609f3f69e0058984f7b30b06ad2e6cfb9736fb27 /benchmarks/shootout2_cmap.cpp | |
| parent | aba4aad980ff7f171f53c34915da0755f0ed079c (diff) | |
| download | STC-modified-658019e1e53ad1ccbca5c623b7199c445eab8b86.tar.gz STC-modified-658019e1e53ad1ccbca5c623b7199c445eab8b86.zip | |
Updated benchmarks to newstyle.
Diffstat (limited to 'benchmarks/shootout2_cmap.cpp')
| -rw-r--r-- | benchmarks/shootout2_cmap.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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 <time.h>
#include <stc/crandom.h>
#include <stc/cstr.h>
-#include <stc/cmap.h>
#include "others/khash.h"
#ifdef __cplusplus
@@ -18,7 +17,12 @@ template<typename C> 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 <stc/cmap.h>
+
KHASH_MAP_INIT_INT64(ii, int64_t)
|
