Searched refs:HASHMAP_BASE (Results 1 – 3 of 3) sorted by relevance
/third_party/eudev/src/shared/ |
D | hashmap.h | 122 #define HASHMAP_BASE(h) \ macro 149 return (void*)internal_hashmap_free(HASHMAP_BASE(h)); in hashmap_free() 152 return (void*)internal_hashmap_free(HASHMAP_BASE(h)); in ordered_hashmap_free() 157 return (void*)internal_hashmap_free_free(HASHMAP_BASE(h)); in hashmap_free_free() 160 return (void*)internal_hashmap_free_free(HASHMAP_BASE(h)); in ordered_hashmap_free_free() 170 return (Hashmap*) internal_hashmap_copy(HASHMAP_BASE(h)); in hashmap_copy() 173 return (OrderedHashmap*) internal_hashmap_copy(HASHMAP_BASE(h)); in ordered_hashmap_copy() 198 return internal_hashmap_get(HASHMAP_BASE(h), key); in hashmap_get() 201 return internal_hashmap_get(HASHMAP_BASE(h), key); in ordered_hashmap_get() 211 return internal_hashmap_contains(HASHMAP_BASE(h), key); in hashmap_contains() [all …]
|
D | set.h | 32 internal_hashmap_free(HASHMAP_BASE(s)); in set_free() 36 internal_hashmap_free_free(HASHMAP_BASE(s)); in set_free_free() 42 return (Set*) internal_hashmap_copy(HASHMAP_BASE(s)); in set_copy() 52 return internal_hashmap_get(HASHMAP_BASE(s), key); in set_get() 57 return internal_hashmap_contains(HASHMAP_BASE(s), key); in set_contains() 61 return internal_hashmap_remove(HASHMAP_BASE(s), key); in set_remove() 71 return internal_hashmap_reserve(HASHMAP_BASE(h), entries_add); in set_reserve() 75 return internal_hashmap_move(HASHMAP_BASE(s), HASHMAP_BASE(other)); in set_move() 79 return internal_hashmap_move_one(HASHMAP_BASE(s), HASHMAP_BASE(other), key); in set_move_one() 83 return internal_hashmap_size(HASHMAP_BASE(s)); in set_size() [all …]
|
D | hashmap.c | 381 #define bucket_hash(h, p) base_bucket_hash(HASHMAP_BASE(h), p) 408 return (struct plain_hashmap_entry*) bucket_at(HASHMAP_BASE(h), idx); in plain_bucket_at() 412 return (struct ordered_hashmap_entry*) bucket_at(HASHMAP_BASE(h), idx); in ordered_bucket_at() 416 return (struct set_entry*) bucket_at(HASHMAP_BASE(h), idx); in set_bucket_at() 601 #define remove_entry(h, idx) base_remove_entry(HASHMAP_BASE(h), idx) 629 idx = prev_idx(HASHMAP_BASE(h), idx); in hashmap_iterate_in_insertion_order() 757 return internal_hashmap_iterate(HASHMAP_BASE(s), i, NULL); in set_iterate() 899 hashmap_free_no_clear(HASHMAP_BASE(h)); in hashmap_free_free_free() 942 for (idx = skip_free_buckets(HASHMAP_BASE(h), 0); idx != IDX_NIL; in hashmap_clear_free_free() 943 idx = skip_free_buckets(HASHMAP_BASE(h), idx + 1)) { in hashmap_clear_free_free() [all …]
|