Searched refs:num_buckets (Results 1 – 9 of 9) sorted by relevance
/netbsd-src/external/bsd/top/dist/ |
H A D | hash.c | 104 return (s % ht->num_buckets); in string_hash() 204 result->num_buckets = num; in hash_create() 233 while (i++ < ht->num_buckets) in hash_count() 262 while (i++ < ht->num_buckets) in hash_sizeinfo() 307 bucket = &(ht->buckets[(key % ht->num_buckets)]); in hash_add_uint() 361 bucket = &(ht->buckets[(key % ht->num_buckets)]); in hash_replace_uint() 413 if ((bucket = &(ht->buckets[(key % ht->num_buckets)])) != NULL) in hash_lookup_uint() 452 if ((bucket = &(ht->buckets[(key % ht->num_buckets)])) != NULL) in hash_remove_uint() 490 pos->num_buckets = ht->num_buckets; in hash_first_uint() 499 if (++pos->curr >= pos->num_buckets) in hash_first_uint() [all …]
|
H A D | hash.m4c | 147 return (s % ht->num_buckets); 244 result->num_buckets = num; 272 while (i++ < ht->num_buckets) 300 while (i++ < ht->num_buckets) 535 pos->num_buckets = ht->num_buckets; 544 if (++pos->curr >= pos->num_buckets) 574 if (pos->curr >= pos->num_buckets) 596 if (++pos->curr >= pos->num_buckets) 660 HASH_TABLE_TMPL(`uint', `unsigned int', `(key % ht->num_buckets)', `key == k1', ,) 661 HASH_TABLE_TMPL(`pid', `pid_t', `(key % ht->num_buckets)', `key == k1', ,) [all …]
|
H A D | hash.h | 64 int num_buckets; member 69 int num_buckets; member
|
H A D | hash.m4h | 64 int num_buckets; 69 int num_buckets;
|
/netbsd-src/external/apache2/llvm/dist/clang/utils/hmaptool/ |
H A D | hmaptool | 46 num_buckets, max_value_len) = struct.unpack(header_fmt, data) 56 if num_buckets == 0 or (num_buckets & num_buckets - 1) != 0: 63 buckets_data = f.read(num_buckets * bucket_size) 64 if len(buckets_data) != num_buckets * bucket_size: 69 for i in range(num_buckets)] 179 num_buckets = next_power_of_two(len(mappings) * 3) 182 for i in range(num_buckets)] 202 for i in range(num_buckets): 203 idx = (hash + i) % num_buckets 217 strtable_offset = magic_size + header_size + num_buckets * bucket_size [all …]
|
/netbsd-src/external/bsd/elftoolchain/dist/common/ |
H A D | uthash.h | 145 HASH_TO_BKT(_hd_hh_item->hashv, (head)->hh.tbl->num_buckets, _hd_bkt); \ 161 HASH_TO_BKT(hashval, (head)->hh.tbl->num_buckets, _hf_bkt); \ 223 (head)->hh.tbl->num_buckets = HASH_INITIAL_NUM_BUCKETS; \ 321 HASH_TO_BKT(hashval, (head)->hh.tbl->num_buckets, _ha_bkt); \ 344 HASH_TO_BKT(hashval, (head)->hh.tbl->num_buckets, _ha_bkt); \ 459 (head)->hh.tbl->num_buckets * sizeof(struct UT_hash_bucket)); \ 475 HASH_TO_BKT(_hd_hh_del->hashv, (head)->hh.tbl->num_buckets, _hd_bkt); \ 526 for (_bkt_i = 0; _bkt_i < (head)->hh.tbl->num_buckets; ++_bkt_i) { \ 841 sizeof(struct UT_hash_bucket) * (tbl)->num_buckets * 2U); \ 846 sizeof(struct UT_hash_bucket) * (tbl)->num_buckets * 2U); \ [all …]
|
/netbsd-src/external/gpl3/binutils/dist/ld/ |
H A D | pdb.c | 268 uint32_t num_entries, num_buckets; in populate_info_stream() local 305 num_buckets = num_entries * 2; in populate_info_stream() 310 if (num_buckets > 0) in populate_info_stream() 312 buckets = xmalloc (sizeof (struct hash_entry *) * num_buckets); in populate_info_stream() 313 memset (buckets, 0, sizeof (struct hash_entry *) * num_buckets); in populate_info_stream() 321 uint32_t bucket_num = hash % num_buckets; in populate_info_stream() 327 if (bucket_num == num_buckets) in populate_info_stream() 370 bfd_putl32 (num_buckets, int_buf); in populate_info_stream() 378 bfd_putl32 ((num_buckets + 31) / 32, int_buf); in populate_info_stream() 384 for (unsigned int i = 0; i < num_buckets; i += 32) in populate_info_stream() [all …]
|
/netbsd-src/external/gpl3/gdb.old/dist/gdb/ |
H A D | ChangeLog-1999 | 911 (struct bcache): Add new element: num_buckets. Make bucket be a
|
/netbsd-src/external/gpl3/gdb/dist/gdb/ |
H A D | ChangeLog-1999 | 911 (struct bcache): Add new element: num_buckets. Make bucket be a
|