Searched refs:ckh (Results 1 – 6 of 6) sorted by relevance
/external/jemalloc/src/ |
D | ckh.c | 43 static bool ckh_grow(tsd_t *tsd, ckh_t *ckh); 44 static void ckh_shrink(tsd_t *tsd, ckh_t *ckh); 53 ckh_bucket_search(ckh_t *ckh, size_t bucket, const void *key) in ckh_bucket_search() argument 59 cell = &ckh->tab[(bucket << LG_CKH_BUCKET_CELLS) + i]; in ckh_bucket_search() 60 if (cell->key != NULL && ckh->keycomp(key, cell->key)) in ckh_bucket_search() 71 ckh_isearch(ckh_t *ckh, const void *key) in ckh_isearch() argument 75 assert(ckh != NULL); in ckh_isearch() 77 ckh->hash(key, hashes); in ckh_isearch() 80 bucket = hashes[0] & ((ZU(1) << ckh->lg_curbuckets) - 1); in ckh_isearch() 81 cell = ckh_bucket_search(ckh, bucket, key); in ckh_isearch() [all …]
|
/external/jemalloc/test/unit/ |
D | ckh.c | 6 ckh_t ckh; in TEST_BEGIN() local 10 assert_false(ckh_new(tsd, &ckh, 2, ckh_string_hash, ckh_string_keycomp), in TEST_BEGIN() 12 ckh_delete(tsd, &ckh); in TEST_BEGIN() 14 assert_false(ckh_new(tsd, &ckh, 3, ckh_pointer_hash, in TEST_BEGIN() 16 ckh_delete(tsd, &ckh); in TEST_BEGIN() 23 ckh_t ckh; in TEST_BEGIN() local 35 assert_false(ckh_new(tsd, &ckh, 2, ckh_string_hash, ckh_string_keycomp), in TEST_BEGIN() 37 assert_zu_eq(ckh_count(&ckh), 0, in TEST_BEGIN() 39 ckh_count(&ckh)); in TEST_BEGIN() 43 ckh_insert(tsd, &ckh, strs[i], strs[i]); in TEST_BEGIN() [all …]
|
/external/jemalloc/include/jemalloc/internal/ |
D | ckh.h | 69 bool ckh_new(tsd_t *tsd, ckh_t *ckh, size_t minitems, ckh_hash_t *hash, 71 void ckh_delete(tsd_t *tsd, ckh_t *ckh); 72 size_t ckh_count(ckh_t *ckh); 73 bool ckh_iter(ckh_t *ckh, size_t *tabind, void **key, void **data); 74 bool ckh_insert(tsd_t *tsd, ckh_t *ckh, const void *key, const void *data); 75 bool ckh_remove(tsd_t *tsd, ckh_t *ckh, const void *searchkey, void **key, 77 bool ckh_search(ckh_t *ckh, const void *seachkey, void **key, void **data);
|
D | jemalloc_internal.h.in | 351 #include "jemalloc/internal/ckh.h" 378 #include "jemalloc/internal/ckh.h" 462 #include "jemalloc/internal/ckh.h" 489 #include "jemalloc/internal/ckh.h"
|
/external/jemalloc/ |
D | Android.mk | 61 src/ckh.c \ 179 test/unit/ckh.c \
|
D | Makefile.in | 81 $(srcroot)src/chunk_mmap.c $(srcroot)src/ckh.c $(srcroot)src/ctl.c \ 118 $(srcroot)test/unit/ckh.c \
|