From d1d8a9f389155c223db92d060b8fbccda58e2e53 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Thu, 3 Nov 2022 13:28:45 +0100 Subject: Made cmap i_max_load_factor a compile time template parameter instead of runtime. Enables cmap to be NULL initialized. Currently only cvec/cdeq and csmap cannot be NULL initialized, but eventually they will. --- benchmarks/misc/rust_cmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'benchmarks/misc/rust_cmap.c') diff --git a/benchmarks/misc/rust_cmap.c b/benchmarks/misc/rust_cmap.c index 0750b182..83b7dd19 100644 --- a/benchmarks/misc/rust_cmap.c +++ b/benchmarks/misc/rust_cmap.c @@ -3,6 +3,7 @@ #define i_key uint64_t #define i_val uint64_t #define i_tag u64 +#define i_max_load_factor 0.8f #include uint64_t romu_rotl(uint64_t val, uint32_t r) { @@ -27,7 +28,6 @@ int main() const size_t n = 50000000, mask = (1 << 25) - 1, ms = CLOCKS_PER_SEC/1000; - cmap_u64_max_load_factor(&m, 0.8); cmap_u64_reserve(&m, n); printf("STC cmap n = %" c_ZU ", mask = 0x%" PRIxMAX "\n", n, mask); -- cgit v1.2.3