Lines Matching refs:size
33 size_t size; member
51 ht->size = 3; in htab_create()
52 ht->entries = malloc (sizeof (void *) * ht->size); in htab_create()
62 memset (ht->entries, 0, sizeof (void *) * ht->size); in htab_create()
74 for (i = htab->size - 1; i >= 0; i--) in htab_delete()
91 size_t size = htab->size; in find_empty_slot_for_expand() local
92 unsigned int index = hash % size; in find_empty_slot_for_expand()
99 hash2 = 1 + hash % (size - 2); in find_empty_slot_for_expand()
103 if (index >= size) in find_empty_slot_for_expand()
104 index -= size; in find_empty_slot_for_expand()
130 olimit = oentries + htab->size; in htab_expand()
134 if (htab->n_elements * 2 > htab->size) in htab_expand()
137 nsize = htab->size; in htab_expand()
143 htab->size = nsize; in htab_expand()
188 size_t size; in htab_find_slot() local
191 if (htab->size * 3 <= htab->n_elements * 4 in htab_find_slot()
197 size = htab->size; in htab_find_slot()
198 index = hash % size; in htab_find_slot()
206 hash2 = 1 + hash % (size - 2); in htab_find_slot()
210 if (index >= size) in htab_find_slot()
211 index -= size; in htab_find_slot()