Lines Matching refs:allocated
35 table->allocated = 128; in stringtable_init()
37 table->entries = xcalloc (table->allocated, sizeof (table->entries[0])); in stringtable_init()
60 uint32_t new_allocated = table->allocated * 2; in stringtable_rehash()
65 for (uint32_t i = 0; i < table->allocated; ++i) in stringtable_rehash()
78 table->allocated = new_allocated; in stringtable_rehash()
85 if (table->allocated == 0) in stringtable_add()
95 = table->entries[hash & (table->allocated - 1)]; in stringtable_add()
104 if (table->count * 3 > table->allocated * 2) in stringtable_add()
111 uint32_t index = hash & (table->allocated - 1); in stringtable_add()
163 for (uint32_t i = 0; i < table->allocated; ++i) in stringtable_finalize()
204 for (uint32_t i = 0; i < table->allocated; ++i) in stringtable_finalize()