Lines Matching refs:PTR

77 static PTR *find_empty_slot_for_expand (htab_t, hashval_t);
200 hash_pointer (const PTR p) in hash_pointer()
208 eq_pointer (const PTR p1, const PTR p2) in eq_pointer()
316 result->entries = (PTR *) (*alloc_f) (alloc_arg, size, sizeof (PTR)); in htab_create_alloc_ex()
369 result->entries = (PTR *) (*alloc_f) (size, sizeof (PTR)); in htab_create_typed_alloc()
391 htab_del del_f, PTR alloc_arg, in htab_set_functions_ex()
424 PTR *entries = htab->entries; in htab_delete()
450 PTR *entries = htab->entries; in htab_empty()
459 if (size > 1024*1024 / sizeof (PTR)) in htab_empty()
461 int nindex = higher_prime_index (1024 / sizeof (PTR)); in htab_empty()
469 htab->entries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_empty()
470 sizeof (PTR *)); in htab_empty()
472 htab->entries = (PTR *) (*htab->alloc_f) (nsize, sizeof (PTR *)); in htab_empty()
477 memset (entries, 0, size * sizeof (PTR)); in htab_empty()
489 static PTR *
494 PTR *slot = htab->entries + index; in find_empty_slot_for_expand()
528 PTR *oentries; in htab_expand()
529 PTR *olimit; in htab_expand()
530 PTR *p; in htab_expand()
531 PTR *nentries; in htab_expand()
555 nentries = (PTR *) (*htab->alloc_with_arg_f) (htab->alloc_arg, nsize, in htab_expand()
556 sizeof (PTR *)); in htab_expand()
558 nentries = (PTR *) (*htab->alloc_f) (nsize, sizeof (PTR *)); in htab_expand()
570 PTR x = *p; in htab_expand()
574 PTR *q = find_empty_slot_for_expand (htab, (*htab->hash_f) (x)); in htab_expand()
593 PTR
594 htab_find_with_hash (htab_t htab, const PTR element, hashval_t hash) in htab_find_with_hash()
598 PTR entry; in htab_find_with_hash()
627 PTR
628 htab_find (htab_t htab, const PTR element) in htab_find()
641 PTR *
642 htab_find_slot_with_hash (htab_t htab, const PTR element, in htab_find_slot_with_hash()
645 PTR *first_deleted_slot; in htab_find_slot_with_hash()
648 PTR entry; in htab_find_slot_with_hash()
709 PTR *
710 htab_find_slot (htab_t htab, const PTR element, enum insert_option insert) in htab_find_slot()
721 htab_remove_elt (htab_t htab, PTR element) in htab_remove_elt()
732 htab_remove_elt_with_hash (htab_t htab, PTR element, hashval_t hash) in htab_remove_elt_with_hash()
734 PTR *slot; in htab_remove_elt_with_hash()
752 htab_clear_slot (htab_t htab, PTR *slot) in htab_clear_slot()
771 htab_traverse_noresize (htab_t htab, htab_trav callback, PTR info) in htab_traverse_noresize()
773 PTR *slot; in htab_traverse_noresize()
774 PTR *limit; in htab_traverse_noresize()
781 PTR x = *slot; in htab_traverse_noresize()
794 htab_traverse (htab_t htab, htab_trav callback, PTR info) in htab_traverse()
841 htab_hash_string (const PTR p) in htab_hash_string()
931 iterative_hash (const PTR k_in /* the key */, in iterative_hash()