Lines Matching refs:element
453 HASH is the hash value for the element to be inserted. */
557 element. It cannot be used to insert or delete an element. */
560 htab_find_with_hash (htab_t htab, const PTR element, hashval_t hash)
572 || (entry != HTAB_DELETED_ENTRY && (*htab->eq_f) (entry, element)))
585 || (entry != HTAB_DELETED_ENTRY && (*htab->eq_f) (entry, element)))
591 element. */
594 htab_find (htab_t htab, const PTR element)
596 return htab_find_with_hash (htab, element, (*htab->hash_f) (element));
600 equal to the given element. To delete an entry, call this with
608 htab_find_slot_with_hash (htab_t htab, const PTR element,
634 else if ((*htab->eq_f) (entry, element))
653 else if ((*htab->eq_f) (entry, element))
673 element. */
676 htab_find_slot (htab_t htab, const PTR element, enum insert_option insert)
678 return htab_find_slot_with_hash (htab, element, (*htab->hash_f) (element),
682 /* This function deletes an element with the given value from hash
683 table (the hash is computed from the element). If there is no matching
684 element in the hash table, this function does nothing. */
687 htab_remove_elt (htab_t htab, PTR element)
689 htab_remove_elt_with_hash (htab, element, (*htab->hash_f) (element));
693 /* This function deletes an element with the given value from hash
694 table. If there is no matching element in the hash table, this
698 htab_remove_elt_with_hash (htab_t htab, PTR element, hashval_t hash)
702 slot = htab_find_slot_with_hash (htab, element, hash, NO_INSERT);