13#include "isl_config.h"
26 for (i = 0; i < len; ++i)
81 size_t old_size,
size;
86 old_size = 1 << table->
bits;
99 for (h = 0; h < old_size; ++h) {
102 if (!entries[h].
data)
160 isl_bool (*eq)(
const void *entry,
const void *
val),
161 const void *
val,
int reserve)
164 uint32_t h, key_bits;
183 if (4 * table->
n >= 3 *
size) {
208 for (h = 0; h <
size; ++ h)
225 for (h = 0; h <
size; ++ h)
245 for (h = 0; h <
size; ++ h) {
265 if (!table || !entry)
#define isl_assert(ctx, test, code)
#define isl_calloc_array(ctx, type, n)
#define isl_alloc_type(ctx, type)
#define isl_hash_bits(h, bits)
#define isl_hash_byte(h, b)
__isl_export __isl_give ISL_HMAP __isl_take ISL_KEY __isl_take ISL_VAL * val
isl_stat isl_stat(* fn)(__isl_take ISL_KEY *key, __isl_take ISL_VAL *val, void *user)
isl_stat isl_stat(*) void user)
__isl_constructor __isl_give ISL_HMAP int min_size
isl_bool isl_bool(* test)(__isl_keep ISL_KEY *key, __isl_keep ISL_VAL *val, void *user)
void isl_hash_table_clear(struct isl_hash_table *table)
isl_bool isl_hash_table_every(isl_ctx *ctx, struct isl_hash_table *table, isl_bool(*test)(void **entry, void *user), void *user)
static int grow_table(struct isl_ctx *ctx, struct isl_hash_table *table)
struct isl_hash_table_entry * isl_hash_table_entry_none
uint32_t isl_hash_string(uint32_t hash, const char *s)
static unsigned int round_up(unsigned int v)
uint32_t isl_hash_mem(uint32_t hash, const void *p, size_t len)
int isl_hash_table_init(struct isl_ctx *ctx, struct isl_hash_table *table, int min_size)
static isl_bool no(const void *entry, const void *val)
void isl_hash_table_remove(struct isl_ctx *ctx, struct isl_hash_table *table, struct isl_hash_table_entry *entry)
static struct isl_hash_table_entry none
void isl_hash_table_free(struct isl_ctx *ctx, struct isl_hash_table *table)
struct isl_hash_table_entry * isl_hash_table_first(struct isl_hash_table *table)
isl_stat isl_hash_table_foreach(isl_ctx *ctx, struct isl_hash_table *table, isl_stat(*fn)(void **entry, void *user), void *user)
struct isl_hash_table_entry * isl_hash_table_find(struct isl_ctx *ctx, struct isl_hash_table *table, uint32_t key_hash, isl_bool(*eq)(const void *entry, const void *val), const void *val, int reserve)
struct isl_hash_table * isl_hash_table_alloc(struct isl_ctx *ctx, int min_size)
struct isl_hash_table_entry * entries