#pragma once #define HT_N_INLINE 32 typedef struct { void **table; int size; int num; // FIXME(sigrid): to skip over non-items in for-each // put it on the stack instead? int i; void *_space[HT_N_INLINE]; }sl_aligned(8) sl_htable; // define this to be an invalid key/value #define HT_NOTFOUND ((void*)1) // initialize and free sl_htable *htable_new(sl_htable *h, int size) sl_nonnull(1); void htable_free(sl_htable *h) sl_nonnull(1); // clear and (possibly) change size void htable_reset(sl_htable *h, int sz) sl_nonnull(1);