| /openbsd/src/lib/libc/stdlib/ |
| D | hcreate.c | 84 static struct internal_head *htable; variable 94 _DIAGASSERT(htable == NULL); in hcreate() 95 if (htable != NULL) { in hcreate() 118 htable = calloc(htablesize, sizeof htable[0]); in hcreate() 119 if (htable == NULL) { in hcreate() 126 SLIST_INIT(&htable[idx]); in hcreate() 137 _DIAGASSERT(htable != NULL); in hdestroy() 138 if (htable == NULL) in hdestroy() 142 while (!SLIST_EMPTY(&htable[idx])) { in hdestroy() 143 ie = SLIST_FIRST(&htable[idx]); in hdestroy() [all …]
|
| /openbsd/src/usr.bin/cvs/ |
| D | hash.c | 30 hash_table_init(struct hash_table *htable, size_t hsize) in hash_table_init() argument 47 htable->h_table = xcalloc(hsize, sizeof(struct hash_head)); in hash_table_init() 48 htable->h_size = hsize; in hash_table_init() 50 for (i = 0; i < htable->h_size; i++) in hash_table_init() 51 SLIST_INIT(&(htable->h_table[i])); in hash_table_init() 55 hash_table_enter(struct hash_table *htable, struct hash_data *e) in hash_table_enter() argument 62 tableh = &(htable->h_table[(hashv & (htable->h_size - 1))]); in hash_table_enter() 71 hash_table_find(struct hash_table *htable, const char *key, size_t len) in hash_table_find() argument 78 tableh = &(htable->h_table[(hashv & (htable->h_size - 1))]); in hash_table_find()
|
| /openbsd/src/usr.sbin/makefs/ |
| D | walk.c | 307 } *htable; in link_check() local 326 if (!htable) in link_check() 334 ohtable = htable; in link_check() 335 htable = ecalloc(htmask+1, sizeof(*htable)); in link_check() 355 while (htable[h].data) { in link_check() 356 if ((htable[h].data->st.st_ino == entry->st.st_ino) && in link_check() 357 (htable[h].data->st.st_dev == entry->st.st_dev)) { in link_check() 358 return htable[h].data; in link_check() 364 htable[h].data = entry; in link_check()
|
| /openbsd/src/gnu/usr.bin/binutils-2.17/opcodes/ |
| D | cgen-dis.c | 58 CGEN_INSN_LIST **htable, in add_insn_to_hash_chain() argument 70 for (current_buf = htable[hash]; current_buf != NULL; in add_insn_to_hash_chain() 83 htable[hash] = hentbuf; in add_insn_to_hash_chain() 105 CGEN_INSN_LIST ** htable, in hash_insn_array() argument 130 add_insn_to_hash_chain (hentbuf, insn, htable, hash); in hash_insn_array() 143 CGEN_INSN_LIST **htable, in hash_insn_list() argument 167 add_insn_to_hash_chain (hentbuf, ilist->insn, htable, hash); in hash_insn_list()
|
| D | cgen-asm.c | 71 CGEN_INSN_LIST **htable, in hash_insn_array() argument 84 hentbuf->next = htable[hash]; in hash_insn_array() 86 htable[hash] = hentbuf; in hash_insn_array() 99 CGEN_INSN_LIST **htable, in hash_insn_list() argument 111 hentbuf->next = htable[hash]; in hash_insn_list() 113 htable[hash] = hentbuf; in hash_insn_list()
|
| /openbsd/src/gnu/usr.bin/binutils/opcodes/ |
| D | cgen-dis.c | 58 CGEN_INSN_LIST **htable, in add_insn_to_hash_chain() argument 70 for (current_buf = htable[hash]; current_buf != NULL; in add_insn_to_hash_chain() 83 htable[hash] = hentbuf; in add_insn_to_hash_chain() 105 CGEN_INSN_LIST ** htable, in hash_insn_array() argument 130 add_insn_to_hash_chain (hentbuf, insn, htable, hash); in hash_insn_array() 143 CGEN_INSN_LIST **htable, in hash_insn_list() argument 167 add_insn_to_hash_chain (hentbuf, ilist->insn, htable, hash); in hash_insn_list()
|
| D | cgen-asm.c | 70 CGEN_INSN_LIST **htable, in hash_insn_array() argument 83 hentbuf->next = htable[hash]; in hash_insn_array() 85 htable[hash] = hentbuf; in hash_insn_array() 98 CGEN_INSN_LIST **htable, in hash_insn_list() argument 110 hentbuf->next = htable[hash]; in hash_insn_list() 112 htable[hash] = hentbuf; in hash_insn_list()
|
| /openbsd/src/gnu/usr.bin/gcc/gcc/ |
| D | dwarf2out.c | 5949 check_duplicate_cu (cu, htable, sym_num) in check_duplicate_cu() argument 5951 htab_t htable; 5960 htab_find_slot_with_hash (htable, cu, htab_hash_string (cu->die_symbol), 5987 record_comdat_symbol_number (cu, htable, sym_num) in record_comdat_symbol_number() argument 5989 htab_t htable; 5995 htab_find_slot_with_hash (htable, cu, htab_hash_string (cu->die_symbol),
|
| /openbsd/src/gnu/gcc/gcc/ |
| D | dwarf2out.c | 6357 check_duplicate_cu (dw_die_ref cu, htab_t htable, unsigned int *sym_num) in check_duplicate_cu() argument 6365 htab_find_slot_with_hash (htable, cu, htab_hash_string (cu->die_symbol), in check_duplicate_cu() 6392 record_comdat_symbol_number (dw_die_ref cu, htab_t htable, unsigned int sym_num) in record_comdat_symbol_number() argument 6397 htab_find_slot_with_hash (htable, cu, htab_hash_string (cu->die_symbol), in record_comdat_symbol_number()
|