Lines Matching refs:cxts
70 static cxt_hash cxts; variable
76 cxts.size = N_CXT_INITIAL_ENTRIES; in CLG_()
77 cxts.entries = 0; in CLG_()
78 cxts.table = (Context**) CLG_MALLOC("cl.context.ict.1", in CLG_()
79 cxts.size * sizeof(Context*)); in CLG_()
81 for (i = 0; i < cxts.size; i++) in CLG_()
82 cxts.table[i] = 0; in CLG_()
92 new_size = 2* cxts.size +3; in resize_cxt_table()
99 for (i = 0; i < cxts.size; i++) { in resize_cxt_table()
100 if (cxts.table[i] == NULL) continue; in resize_cxt_table()
102 curr = cxts.table[i]; in resize_cxt_table()
120 VG_(free)(cxts.table); in resize_cxt_table()
124 cxts.size, new_size, in resize_cxt_table()
125 cxts.entries, conflicts1, conflicts2); in resize_cxt_table()
127 cxts.size = new_size; in resize_cxt_table()
128 cxts.table = new_table; in resize_cxt_table()
185 cxts.entries++; in new_cxt()
186 if (10 * cxts.entries / cxts.size > 8) in new_cxt()
213 idx = (UInt) (hash % cxts.size); in new_cxt()
214 cxt->next = cxts.table[idx]; in new_cxt()
215 cxts.table[idx] = cxt; in new_cxt()
251 idx = (UInt) (hash % cxts.size); in CLG_()
252 cxt = cxts.table[idx]; in CLG_()