Home
last modified time | relevance | path

Searched refs:_LHASH (Results 1 – 2 of 2) sorted by relevance

/external/boringssl/src/include/openssl/
Dlhash.h124 typedef struct lhash_st _LHASH; typedef
127 OPENSSL_EXPORT _LHASH *lh_new(lhash_hash_func hash, lhash_cmp_func comp);
131 OPENSSL_EXPORT void lh_free(_LHASH *lh);
134 OPENSSL_EXPORT size_t lh_num_items(const _LHASH *lh);
138 OPENSSL_EXPORT void *lh_retrieve(const _LHASH *lh, const void *data,
146 OPENSSL_EXPORT void *lh_retrieve_key(const _LHASH *lh, const void *key,
156 OPENSSL_EXPORT int lh_insert(_LHASH *lh, void **old_data, void *data,
162 OPENSSL_EXPORT void *lh_delete(_LHASH *lh, const void *data,
169 OPENSSL_EXPORT void lh_doall_arg(_LHASH *lh, void (*func)(void *, void *),
200 lh_free((_LHASH *)lh); \
[all …]
/external/boringssl/src/crypto/lhash/
Dlhash.c95 _LHASH *lh_new(lhash_hash_func hash, lhash_cmp_func comp) { in lh_new()
96 _LHASH *ret = OPENSSL_malloc(sizeof(_LHASH)); in lh_new()
100 OPENSSL_memset(ret, 0, sizeof(_LHASH)); in lh_new()
115 void lh_free(_LHASH *lh) { in lh_free()
132 size_t lh_num_items(const _LHASH *lh) { return lh->num_items; } in lh_num_items()
141 static LHASH_ITEM **get_next_ptr_and_hash(const _LHASH *lh, uint32_t *out_hash, in get_next_ptr_and_hash()
163 static LHASH_ITEM **get_next_ptr_by_key(const _LHASH *lh, const void *key, in get_next_ptr_by_key()
178 void *lh_retrieve(const _LHASH *lh, const void *data, in lh_retrieve()
186 void *lh_retrieve_key(const _LHASH *lh, const void *key, uint32_t key_hash, in lh_retrieve_key()
195 static void lh_rebucket(_LHASH *lh, const size_t new_num_buckets) { in lh_rebucket()
[all …]