This commit is contained in:
2020-07-30 20:17:02 +02:00
parent de2c53f473
commit 0ea49d42c9
7 changed files with 114 additions and 13 deletions

View File

@ -1,4 +1,14 @@
#ifndef _acl_hashmap_h
#define _acl_hashmap_h
unsigned hash(unsigned K);
#include <stddef.h>
union acl_hashmap_meta {
void *dummy_ptr;
struct {
size_t bucketCount;
size_t sizeOneElement;
size_t keyBits;
};
};
union acl_hashmap_meta* acl_hashmap_create(size_t bucketCount, size_t sizeOneElement, size_t keySize);
void acl_hashmap_put(union acl_hashmap_meta *hashmap_meta, void *key, void *element);
#endif