diff options
| author | Tyge Løvset <[email protected]> | 2020-03-29 20:18:57 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-03-29 20:18:57 +0200 |
| commit | 124f1eaaa8c7e5dafad8f6ba1898b09b38bac9dc (patch) | |
| tree | f0169074c10098ca5ed2c3f2dd58182bccb8e521 /benchmark.cpp | |
| parent | bd3f6154b21eef374d93640fe00ee3cc09a16cd2 (diff) | |
| download | STC-modified-124f1eaaa8c7e5dafad8f6ba1898b09b38bac9dc.tar.gz STC-modified-124f1eaaa8c7e5dafad8f6ba1898b09b38bac9dc.zip | |
Add files via upload
Diffstat (limited to 'benchmark.cpp')
| -rw-r--r-- | benchmark.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/benchmark.cpp b/benchmark.cpp index 03f43cbf..36d4c733 100644 --- a/benchmark.cpp +++ b/benchmark.cpp @@ -3,8 +3,8 @@ #include <time.h>
#include <unordered_map>
-#include <c_lib/cstring.h>
-#include <c_lib/cmap.h>
+#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"));
|
