61 const uint64_t *
key = k;
66 static bool key_eq(
const void *key1,
const void *key2)
68 const uint64_t *
k1 = key1;
69 const uint64_t *
k2 = key2;
112 h_buckets[0].hb_objects));
#define m0_htable_for(name, var, htable)
#define m0_hbucket_forall(name, var, bucket,...)
static uint64_t hash_func(const struct m0_htable *htable, const void *k)
static struct foo foos[FOO_NR]
M0_INTERNAL bool m0_tlist_is_empty(const struct m0_tl_descr *d, const struct m0_tl *list)
struct m0_hbucket * h_buckets
void test_hashtable(void)
#define m0_htable_forall(name, var, htable,...)
M0_INTERNAL void m0_tlink_init(const struct m0_tl_descr *d, void *obj)
static bool key_eq(const void *key1, const void *key2)
M0_INTERNAL bool m0_tlink_is_in(const struct m0_tl_descr *d, const void *obj)
M0_HT_DESCR_DEFINE(foohash, "Hash of fops", static, struct foo, f_hlink, f_magic, FOO_MAGIC, BAR_MAGIC, f_hkey, hash_func, key_eq)
M0_HT_DEFINE(foohash, static, struct foo, uint64_t)