Home
last modified time | relevance | path

Searched refs:htab (Results 1 – 25 of 71) sorted by relevance

123

/NextBSD/contrib/gcclibs/libiberty/
HDhashtab.c218 #define htab_size(htab) ((htab)->size) argument
221 (htab_size) (htab_t htab) in size_t()
223 return htab_size (htab); in size_t()
228 #define htab_elements(htab) ((htab)->n_elements - (htab)->n_deleted) argument
231 (htab_elements) (htab_t htab) in size_t()
233 return htab_elements (htab); in size_t()
267 htab_mod (hashval_t hash, htab_t htab) in htab_mod() argument
269 const struct prime_ent *p = &prime_tab[htab->size_prime_index]; in htab_mod()
276 htab_mod_m2 (hashval_t hash, htab_t htab) in htab_mod_m2() argument
278 const struct prime_ent *p = &prime_tab[htab->size_prime_index]; in htab_mod_m2()
[all …]
/NextBSD/contrib/binutils/libiberty/
HDhashtab.c218 #define htab_size(htab) ((htab)->size) argument
221 (htab_size) (htab_t htab) in size_t()
223 return htab_size (htab); in size_t()
228 #define htab_elements(htab) ((htab)->n_elements - (htab)->n_deleted) argument
231 (htab_elements) (htab_t htab) in size_t()
233 return htab_elements (htab); in size_t()
267 htab_mod (hashval_t hash, htab_t htab) in htab_mod() argument
269 const struct prime_ent *p = &prime_tab[htab->size_prime_index]; in htab_mod()
276 htab_mod_m2 (hashval_t hash, htab_t htab) in htab_mod_m2() argument
278 const struct prime_ent *p = &prime_tab[htab->size_prime_index]; in htab_mod_m2()
[all …]
/NextBSD/crypto/heimdal/lib/asn1/
HDhash.c42 static Hashentry *_search(Hashtab * htab, /* The hash table */
50 Hashtab *htab; in hashtabnew() local
55 htab = (Hashtab *) malloc(sizeof(Hashtab) + (sz - 1) * sizeof(Hashentry *)); in hashtabnew()
56 if (htab == NULL) in hashtabnew()
60 htab->tab[i] = NULL; in hashtabnew()
62 htab->cmp = cmp; in hashtabnew()
63 htab->hash = hash; in hashtabnew()
64 htab->sz = sz; in hashtabnew()
65 return htab; in hashtabnew()
71 _search(Hashtab * htab, void *ptr) in _search() argument
[all …]
HDhash.h63 void *hashtabsearch(Hashtab *htab, /* The hash table */
67 void *hashtabadd(Hashtab *htab, /* The hash table */
70 int _hashtabdel(Hashtab *htab, /* The table */
74 void hashtabforeach(Hashtab *htab,
85 #define hashtabdel(htab,key) _hashtabdel(htab,key,FALSE) argument
87 #define hashtabfree(htab,key) _hashtabdel(htab,key,TRUE) /* Do! */ argument
HDsymbol.c37 static Hashtab *htab; variable
59 htab = hashtabnew(101, cmp, hash); in initsym()
79 s = (Symbol *) hashtabsearch(htab, (void *) &key); in addsym()
86 hashtabadd(htab, s); in addsym()
106 hashtabforeach(htab, checkfunc, &f); in checkundefined()
/NextBSD/contrib/binutils/bfd/
HDelf32-i386.c694 #define elf_i386_compute_jump_table_size(htab) \ argument
695 ((htab)->next_tls_desc_index * 4)
772 struct elf_i386_link_hash_table *htab; in create_got_section() local
777 htab = elf_i386_hash_table (info); in create_got_section()
778 htab->sgot = bfd_get_section_by_name (dynobj, ".got"); in create_got_section()
779 htab->sgotplt = bfd_get_section_by_name (dynobj, ".got.plt"); in create_got_section()
780 if (!htab->sgot || !htab->sgotplt) in create_got_section()
783 htab->srelgot = bfd_make_section_with_flags (dynobj, ".rel.got", in create_got_section()
789 if (htab->srelgot == NULL in create_got_section()
790 || ! bfd_set_section_alignment (dynobj, htab->srelgot, 2)) in create_got_section()
[all …]
HDelf64-x86-64.c499 #define elf64_x86_64_compute_jump_table_size(htab) \ argument
500 ((htab)->srelplt->reloc_count * GOT_ENTRY_SIZE)
574 struct elf64_x86_64_link_hash_table *htab; in create_got_section() local
579 htab = elf64_x86_64_hash_table (info); in create_got_section()
580 htab->sgot = bfd_get_section_by_name (dynobj, ".got"); in create_got_section()
581 htab->sgotplt = bfd_get_section_by_name (dynobj, ".got.plt"); in create_got_section()
582 if (!htab->sgot || !htab->sgotplt) in create_got_section()
585 htab->srelgot = bfd_make_section_with_flags (dynobj, ".rela.got", in create_got_section()
591 if (htab->srelgot == NULL in create_got_section()
592 || ! bfd_set_section_alignment (dynobj, htab->srelgot, 3)) in create_got_section()
[all …]
HDelf32-ppc.c2590 struct ppc_elf_link_hash_table *htab; in ppc_elf_create_got() local
2597 htab = ppc_elf_hash_table (info); in ppc_elf_create_got()
2598 htab->got = s = bfd_get_section_by_name (abfd, ".got"); in ppc_elf_create_got()
2602 if (htab->is_vxworks) in ppc_elf_create_got()
2604 htab->sgotplt = bfd_get_section_by_name (abfd, ".got.plt"); in ppc_elf_create_got()
2605 if (!htab->sgotplt) in ppc_elf_create_got()
2620 htab->relgot = bfd_make_section_with_flags (abfd, ".rela.got", flags); in ppc_elf_create_got()
2621 if (!htab->relgot in ppc_elf_create_got()
2622 || ! bfd_set_section_alignment (abfd, htab->relgot, 2)) in ppc_elf_create_got()
2635 struct ppc_elf_link_hash_table *htab; in ppc_elf_create_dynamic_sections() local
[all …]
HDelfxx-sparc.c760 #define SPARC_ELF_PUT_WORD(htab, bfd, val, ptr) \ argument
761 htab->put_word(bfd, val, ptr)
763 #define SPARC_ELF_R_INFO(htab, in_rel, index, type) \ argument
764 htab->r_info(in_rel, index, type)
766 #define SPARC_ELF_R_SYMNDX(htab, r_info) \ argument
767 htab->r_symndx(r_info)
769 #define SPARC_ELF_WORD_BYTES(htab) \ argument
770 htab->bytes_per_word
772 #define SPARC_ELF_RELA_BYTES(htab) \ argument
773 htab->bytes_per_rela
[all …]
HDelf32-s390.c815 struct elf_s390_link_hash_table *htab; local
820 htab = elf_s390_hash_table (info);
821 htab->sgot = bfd_get_section_by_name (dynobj, ".got");
822 htab->sgotplt = bfd_get_section_by_name (dynobj, ".got.plt");
823 if (!htab->sgot || !htab->sgotplt)
826 htab->srelgot = bfd_make_section_with_flags (dynobj, ".rela.got",
832 if (htab->srelgot == NULL
833 || ! bfd_set_section_alignment (dynobj, htab->srelgot, 2))
847 struct elf_s390_link_hash_table *htab; local
849 htab = elf_s390_hash_table (info);
[all …]
HDelf64-s390.c770 struct elf_s390_link_hash_table *htab; local
775 htab = elf_s390_hash_table (info);
776 htab->sgot = bfd_get_section_by_name (dynobj, ".got");
777 htab->sgotplt = bfd_get_section_by_name (dynobj, ".got.plt");
778 if (!htab->sgot || !htab->sgotplt)
781 htab->srelgot = bfd_make_section_with_flags (dynobj, ".rela.got",
787 if (htab->srelgot == NULL
788 || ! bfd_set_section_alignment (dynobj, htab->srelgot, 3))
802 struct elf_s390_link_hash_table *htab; local
804 htab = elf_s390_hash_table (info);
[all …]
HDelf64-ppc.c3650 struct ppc_link_hash_table *htab; in link_hash_newfunc() local
3652 htab = (struct ppc_link_hash_table *) table; in link_hash_newfunc()
3653 eh->u.next_dot_sym = htab->dot_syms; in link_hash_newfunc()
3654 htab->dot_syms = eh; in link_hash_newfunc()
3666 struct ppc_link_hash_table *htab; in ppc64_elf_link_hash_table_create() local
3669 htab = bfd_zmalloc (amt); in ppc64_elf_link_hash_table_create()
3670 if (htab == NULL) in ppc64_elf_link_hash_table_create()
3673 if (!_bfd_elf_link_hash_table_init (&htab->elf, abfd, link_hash_newfunc, in ppc64_elf_link_hash_table_create()
3676 free (htab); in ppc64_elf_link_hash_table_create()
3681 if (!bfd_hash_table_init (&htab->stub_hash_table, stub_hash_newfunc, in ppc64_elf_link_hash_table_create()
[all …]
HDelf32-spu.c354 struct spu_link_hash_table *htab; in spu_elf_link_hash_table_create() local
356 htab = bfd_malloc (sizeof (*htab)); in spu_elf_link_hash_table_create()
357 if (htab == NULL) in spu_elf_link_hash_table_create()
360 if (!_bfd_elf_link_hash_table_init (&htab->elf, abfd, in spu_elf_link_hash_table_create()
364 free (htab); in spu_elf_link_hash_table_create()
369 if (!bfd_hash_table_init (&htab->stub_hash_table, stub_hash_newfunc, in spu_elf_link_hash_table_create()
373 memset (&htab->stub, 0, in spu_elf_link_hash_table_create()
374 sizeof (*htab) - offsetof (struct spu_link_hash_table, stub)); in spu_elf_link_hash_table_create()
376 return &htab->elf.root; in spu_elf_link_hash_table_create()
530 struct spu_link_hash_table *htab = spu_hash_table (info); in spu_elf_create_sections() local
[all …]
HDmerge.c80 struct sec_merge_hash *htab; member
92 struct sec_merge_hash *htab; member
402 sinfo->htab = sec_merge_init (sec->entsize, (sec->flags & SEC_STRINGS)); in _bfd_add_merge_section()
403 if (sinfo->htab == NULL) in _bfd_add_merge_section()
425 secinfo->htab = sinfo->htab; in _bfd_add_merge_section()
464 entry = sec_merge_add (sinfo->htab, (char *) p, (unsigned) eltalign, in record_section()
476 entry = sec_merge_add (sinfo->htab, "", in record_section()
496 entry = sec_merge_add (sinfo->htab, (char *) p, in record_section()
510 entry = sec_merge_add (sinfo->htab, (char *) p, 1, secinfo); in record_section()
599 amt = sinfo->htab->size * sizeof (struct sec_merge_hash_entry *); in merge_strings()
[all …]
HDelf32-arm.c2297 reloc_section_p (struct elf32_arm_link_hash_table *htab, in reloc_section_p() argument
2300 if (htab->use_rel) in reloc_section_p()
2312 struct elf32_arm_link_hash_table *htab; in create_got_section() local
2314 htab = elf32_arm_hash_table (info); in create_got_section()
2316 if (htab->symbian_p) in create_got_section()
2322 htab->sgot = bfd_get_section_by_name (dynobj, ".got"); in create_got_section()
2323 htab->sgotplt = bfd_get_section_by_name (dynobj, ".got.plt"); in create_got_section()
2324 if (!htab->sgot || !htab->sgotplt) in create_got_section()
2327 htab->srelgot = bfd_make_section_with_flags (dynobj, in create_got_section()
2328 RELOC_SECTION (htab, ".got"), in create_got_section()
[all …]
HDelf-vxworks.c84 struct elf_link_hash_table *htab; in elf_vxworks_create_dynamic_sections() local
88 htab = elf_hash_table (info); in elf_vxworks_create_dynamic_sections()
111 if (htab->hgot) in elf_vxworks_create_dynamic_sections()
113 htab->hgot->indx = -2; in elf_vxworks_create_dynamic_sections()
114 htab->hgot->other &= ~ELF_ST_VISIBILITY (-1); in elf_vxworks_create_dynamic_sections()
115 htab->hgot->forced_local = 0; in elf_vxworks_create_dynamic_sections()
116 if (!bfd_elf_link_record_dynamic_symbol (info, htab->hgot)) in elf_vxworks_create_dynamic_sections()
119 if (htab->hplt) in elf_vxworks_create_dynamic_sections()
121 htab->hplt->indx = -2; in elf_vxworks_create_dynamic_sections()
122 htab->hplt->type = STT_FUNC; in elf_vxworks_create_dynamic_sections()
HDelfxx-mips.c132 struct htab *got_entries;
135 struct htab *bfd2got;
2399 struct mips_elf_link_hash_table *htab; in mips_elf_gotplt_index() local
2401 htab = mips_elf_hash_table (info); in mips_elf_gotplt_index()
2405 plt_index = (h->plt.offset - htab->plt_header_size) / htab->plt_entry_size; in mips_elf_gotplt_index()
2408 got_address = (htab->sgotplt->output_section->vma in mips_elf_gotplt_index()
2409 + htab->sgotplt->output_offset in mips_elf_gotplt_index()
2413 got_value = (htab->root.hgot->root.u.def.section->output_section->vma in mips_elf_gotplt_index()
2414 + htab->root.hgot->root.u.def.section->output_offset in mips_elf_gotplt_index()
2415 + htab->root.hgot->root.u.def.value); in mips_elf_gotplt_index()
[all …]
HDelf-eh-frame.c463 struct elf_link_hash_table *htab; in _bfd_elf_discard_section_eh_frame() local
483 htab = elf_hash_table (info); in _bfd_elf_discard_section_eh_frame()
484 hdr_info = &htab->eh_info; in _bfd_elf_discard_section_eh_frame()
994 struct elf_link_hash_table *htab; in _bfd_elf_discard_section_eh_frame_hdr() local
998 htab = elf_hash_table (info); in _bfd_elf_discard_section_eh_frame_hdr()
999 hdr_info = &htab->eh_info; in _bfd_elf_discard_section_eh_frame_hdr()
1029 struct elf_link_hash_table *htab; in _bfd_elf_maybe_strip_eh_frame_hdr() local
1032 htab = elf_hash_table (info); in _bfd_elf_maybe_strip_eh_frame_hdr()
1033 hdr_info = &htab->eh_info; in _bfd_elf_maybe_strip_eh_frame_hdr()
1077 struct elf_link_hash_table *htab; in _bfd_elf_eh_frame_section_offset() local
[all …]
/NextBSD/contrib/mdocml/
HDchars.c52 struct ln **htab; member
63 free(arg->htab); in mchars_free()
71 struct ln **htab; in mchars_alloc() local
82 htab = mandoc_calloc(PRINT_HI - PRINT_LO + 1, sizeof(struct ln *)); in mchars_alloc()
87 if (NULL == (pp = htab[hash])) { in mchars_alloc()
88 htab[hash] = &lines[i]; in mchars_alloc()
97 tab->htab = htab; in mchars_alloc()
169 for (pp = tab->htab[hash]; pp; pp = pp->next) in find()
HDmansearch.c177 struct ohash htab; in mansearch() local
285 memset(&htab, 0, sizeof(struct ohash)); in mansearch()
286 ohash_init(&htab, 4, &info); in mansearch()
298 idx = ohash_lookup_memory(&htab, in mansearch()
302 if (NULL != ohash_find(&htab, idx)) in mansearch()
312 ohash_insert(&htab, idx, mp); in mansearch()
334 for (mp = ohash_first(&htab, &idx); in mansearch()
336 mp = ohash_next(&htab, &idx)) { in mansearch()
362 ohash_delete(&htab); in mansearch()
/NextBSD/sbin/hastd/
HDlzf.c102 , LZF_STATE htab in lzf_compress() argument
107 LZF_STATE htab; in lzf_compress() local
135 memset (htab, 0, sizeof (htab)); in lzf_compress()
137 for (hslot = htab; hslot < htab + HSIZE; hslot++) in lzf_compress()
148 hslot = htab + IDX (hval); in lzf_compress()
241 htab[IDX (hval)] = ip; in lzf_compress()
246 htab[IDX (hval)] = ip; in lzf_compress()
255 htab[IDX (hval)] = ip; in lzf_compress()
/NextBSD/usr.bin/xlint/lint2/
HDhash.c53 static hte_t **htab; variable
65 tablep = &htab; in _inithash()
98 table = htab; in _hsearch()
138 table = htab; in _forall()
/NextBSD/lib/libc/stdlib/
HDhsearch_r.c76 hsearch_r(ENTRY item, ACTION action, ENTRY **retval, struct hsearch_data *htab) in hsearch_r() argument
82 hsearch = htab->__hsearch; in hsearch_r()
141 hsearch = htab->__hsearch; in hsearch_r()
HDhdestroy_r.c35 hdestroy_r(struct hsearch_data *htab) in hdestroy_r() argument
40 hsearch = htab->__hsearch; in hdestroy_r()
HDhcreate_r.c35 hcreate_r(size_t nel, struct hsearch_data *htab) in hcreate_r() argument
61 htab->__hsearch = hsearch; in hcreate_r()

123