Lines Matching refs:ht
34 mf_hashtab_T ht; in test_mf_hash() local
40 mf_hash_init(&ht); in test_mf_hash()
45 assert(ht.mht_count == i); in test_mf_hash()
48 num_buckets = ht.mht_mask + 1; in test_mf_hash()
52 assert(ht.mht_count <= (num_buckets << MHT_LOG_LOAD_FACTOR)); in test_mf_hash()
58 assert(ht.mht_buckets == ht.mht_small_buckets); in test_mf_hash()
63 assert(ht.mht_buckets != ht.mht_small_buckets); in test_mf_hash()
67 assert(mf_hash_find(&ht, key) == NULL); in test_mf_hash()
73 mf_hash_add_item(&ht, item); in test_mf_hash()
75 assert(mf_hash_find(&ht, key) == item); in test_mf_hash()
77 if (ht.mht_mask + 1 != num_buckets) in test_mf_hash()
80 assert(ht.mht_mask + 1 == num_buckets * MHT_GROWTH_FACTOR); in test_mf_hash()
89 item = mf_hash_find(&ht, key); in test_mf_hash()
100 item = mf_hash_find(&ht, key); in test_mf_hash()
104 mf_hash_rem_item(&ht, item); in test_mf_hash()
105 assert(mf_hash_find(&ht, key) == NULL); in test_mf_hash()
107 mf_hash_add_item(&ht, item); in test_mf_hash()
108 assert(mf_hash_find(&ht, key) == item); in test_mf_hash()
110 mf_hash_rem_item(&ht, item); in test_mf_hash()
111 assert(mf_hash_find(&ht, key) == NULL); in test_mf_hash()
121 item = mf_hash_find(&ht, key); in test_mf_hash()
135 mf_hash_free_all(&ht); in test_mf_hash()