From 124f1eaaa8c7e5dafad8f6ba1898b09b38bac9dc Mon Sep 17 00:00:00 2001 From: Tyge Løvset <60263450+tylo-work@users.noreply.github.com> Date: Sun, 29 Mar 2020 20:18:57 +0200 Subject: Add files via upload --- benchmark.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'benchmark.cpp') diff --git a/benchmark.cpp b/benchmark.cpp index 03f43cbf..36d4c733 100644 --- a/benchmark.cpp +++ b/benchmark.cpp @@ -3,8 +3,8 @@ #include #include -#include -#include +#include "c_lib/cstring.h" +#include "c_lib/cmap.h" #include "others/bytell_hash_map.hpp" #include "others/robin_hood.hpp" @@ -16,7 +16,7 @@ const size_t seed = 123; // time(NULL); const double maxLoadFactor = 0.77; #define RAND() rand() * rand() -#define CMAP_SETUP(tag, Key, Value) CMap_##tag map = cmap_initializer; \ +#define CMAP_SETUP(tag, Key, Value) CMap_##tag map = cmap_##tag##_init; \ cmap_##tag##_setMaxLoadFactor(&map, maxLoadFactor) #define CMAP_PUT(tag, __key, __value) cmap_##tag##_put(&map, __key, __value)->value #define CMAP_DEL(tag, key) cmap_##tag##_erase(&map, key) @@ -107,7 +107,7 @@ int main() printf("ix entry size %llu\n", sizeof(CMapEntry_ix)); - CVector_s names = cvector_initializer; + CVector_s names = cvector_s_init; cvector_s_push(&names, cstring_make("Robert")); cvector_s_push(&names, cstring_make("Johnny")); cvector_s_push(&names, cstring_make("Anne")); -- cgit v1.2.3