Lines Matching refs:khint_t
164 typedef khint32_t khint_t; typedef
165 typedef khint_t khiter_t;
198 khint_t n_buckets, size, n_occupied, upper_bound; \
208 extern khint_t kh_get_##name(const kh_##name##_t *h, khkey_t key); \
209 extern int kh_resize_##name(kh_##name##_t *h, khint_t new_n_buckets); \
210 extern khint_t kh_put_##name(kh_##name##_t *h, khkey_t key, int *ret); \
211 extern void kh_del_##name(kh_##name##_t *h, khint_t x);
232 SCOPE khint_t kh_get_##name(const kh_##name##_t *h, khkey_t key) \
235 khint_t k, i, last, mask, step = 0; \
246 SCOPE int kh_resize_##name(kh_##name##_t *h, khint_t new_n_buckets) \
249 khint_t j = 1; \
253 …if (h->size >= (khint_t)(new_n_buckets * __ac_HASH_UPPER + 0.5)) j = 0; /* requested size is too s…
275 khint_t new_mask; \
280 khint_t k, i, step = 0; \
305 h->upper_bound = (khint_t)(h->n_buckets * __ac_HASH_UPPER + 0.5); \
309 SCOPE khint_t kh_put_##name(kh_##name##_t *h, khkey_t key, int *ret) \
311 khint_t x; \
322 khint_t k, i, site, last, mask = h->n_buckets - 1, step = 0; \
351 SCOPE void kh_del_##name(kh_##name##_t *h, khint_t x) \
397 static kh_inline khint_t __ac_X31_hash_string(const char *s) in __ac_X31_hash_string()
399 khint_t h = (khint_t)*s; in __ac_X31_hash_string()
400 if (h) for (++s ; *s; ++s) h = (h << 5) - h + (khint_t)*s; in __ac_X31_hash_string()
414 static kh_inline khint_t __ac_Wang_hash(khint_t key) in __ac_Wang_hash()
424 #define kh_int_hash_func2(key) __ac_Wang_hash((khint_t)key)
530 #define kh_begin(h) (khint_t)(0)
560 #define kh_foreach(h, kvar, vvar, code) { khint_t __i; \
574 #define kh_foreach_value(h, vvar, code) { khint_t __i; \