Home
last modified time | relevance | path

Searched refs:htbl (Results 1 – 5 of 5) sorted by relevance

/illumos-gate/usr/src/contrib/ast/src/lib/libast/cdt/
H A Ddthash.c40 Dtlink_t** htbl; /* hash table slots */ member
47 Dtlink_t **htbl, **t, **endt, *l, *next; in htable() local
72 if(!(htbl = (Dtlink_t**)(*dt->memoryf)(dt, 0, n*sizeof(Dtlink_t*), disc)) ) in htable()
76 memset(htbl, 0, n*sizeof(Dtlink_t*)); in htable()
79 for(endt = (t = hash->htbl) + hash->tblz; t < endt; ++t) in htable()
82 l->_rght = htbl[k = l->_hash&(n-1)]; in htable()
83 htbl[k] = l; in htable()
87 if(hash->htbl) /* free old table and set new table */ in htable()
88 (void)(*dt->memoryf)(dt, hash->htbl, 0, disc); in htable()
89 hash->htbl = htbl; in htable()
[all …]
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dif.c59 struct htbl { struct
71 #define HFIRST(htbl, arg) \ argument
72 ((htbl)->htbl_ptrs[(htbl)->htbl_hash((arg), 0) % (htbl)->htbl_size])
75 #define HADD(htbl, strp) \ argument
76 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 …]
/illumos-gate/usr/src/lib/libpicltree/
H A Dpicltree.c456 hash_init(hash_t *htbl) in hash_init() argument
460 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() argument
482 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 …]
/illumos-gate/usr/src/cmd/truss/
H A Dhtbl.h49 typedef struct htbl { struct
H A DMakefile48 htbl.o