Searched refs:htbl (Results 1 – 4 of 4) sorted by relevance
59 struct htbl { struct71 #define HFIRST(htbl, arg) \ argument72 ((htbl)->htbl_ptrs[(htbl)->htbl_hash((arg), 0) % (htbl)->htbl_size])75 #define HADD(htbl, strp) \ argument76 hash_link((htbl), (htbl)->htbl_hash((strp), (htbl)->htbl_key_off), \103 static void htbl_grow(struct htbl *);109 static struct htbl ahash_tbl = {117 static struct htbl bhash_tbl = {125 static struct htbl ihash_tbl = {132 static struct htbl nhash_tbl = {[all …]
456 hash_init(hash_t *htbl) in hash_init() argument460 htbl->hash_size = HASH_TBL_SIZE; in hash_init()461 htbl->tbl = malloc(sizeof (hash_elem_t *) * HASH_TBL_SIZE); in hash_init()462 if (htbl->tbl == NULL) in hash_init()464 for (i = 0; i < htbl->hash_size; ++i) in hash_init()465 htbl->tbl[i] = NULL; in hash_init()473 hash_add_newobj(hash_t *htbl, picl_hdl_t hdl, void *pobj) in hash_add_newobj() argument482 indx = HASH_INDEX(htbl->hash_size, hash_val); in hash_add_newobj()483 n->next = htbl->tbl[indx]; in hash_add_newobj()484 htbl->tbl[indx] = n; in hash_add_newobj()[all …]
51 typedef struct htbl { struct
32 ramdata.o systable.o procset.o stat.o fcall.o htbl.o