diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-04 14:29:00 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-10-04 14:29:00 +0200 |
| commit | 283effb16646112ee9c6bba57e021e80f322b29f (patch) | |
| tree | 3c0ad588e550f86df21687e82a17e9f1f60443be /test/111_h48map | |
| parent | fc150adaf3bff133da0e59d842f13b7b21297fc0 (diff) | |
| download | nissy-core-283effb16646112ee9c6bba57e021e80f322b29f.tar.gz nissy-core-283effb16646112ee9c6bba57e021e80f322b29f.zip | |
Avoid repeating typedefs in tests
Diffstat (limited to 'test/111_h48map')
| -rw-r--r-- | test/111_h48map/h48map_tests.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/test/111_h48map/h48map_tests.c b/test/111_h48map/h48map_tests.c index d70bc3a..7fdfb3d 100644 --- a/test/111_h48map/h48map_tests.c +++ b/test/111_h48map/h48map_tests.c | |||
| @@ -1,20 +1,7 @@ | |||
| 1 | #include "../test.h" | 1 | #include "../test.h" |
| 2 | 2 | ||
| 3 | #define MAP_KEYSHIFT UINT64_C(40) | ||
| 4 | #define MAXPOS 1000 | 3 | #define MAXPOS 1000 |
| 5 | 4 | ||
| 6 | typedef struct { | ||
| 7 | uint64_t n; | ||
| 8 | uint64_t capacity; | ||
| 9 | uint64_t randomizer; | ||
| 10 | uint64_t *table; | ||
| 11 | } h48map_t; | ||
| 12 | |||
| 13 | typedef struct { | ||
| 14 | uint64_t key; | ||
| 15 | uint64_t val; | ||
| 16 | } kvpair_t; | ||
| 17 | |||
| 18 | void h48map_create(h48map_t *, uint64_t, uint64_t); | 5 | void h48map_create(h48map_t *, uint64_t, uint64_t); |
| 19 | void h48map_destroy(h48map_t *); | 6 | void h48map_destroy(h48map_t *); |
| 20 | void h48map_insertmin(h48map_t *, uint64_t, uint64_t); | 7 | void h48map_insertmin(h48map_t *, uint64_t, uint64_t); |
