Lines Matching defs:hindex
208 mach_port_index_t hindex, index;
212 hindex = IH_TABLE_HASH(obj, size);
215 * Ideally, table[hindex].ie_index is the name we want.
221 while ((index = table[hindex].ie_index) != 0) {
233 if (++hindex == size)
234 hindex = 0;
256 mach_port_index_t hindex;
261 hindex = IH_TABLE_HASH(obj, size);
267 * We want to insert at hindex, but there may be collisions.
272 while (table[hindex].ie_index != 0) {
273 if (++hindex == size)
274 hindex = 0;
277 table[hindex].ie_index = index;
296 mach_port_index_t hindex, dindex;
301 hindex = IH_TABLE_HASH(obj, size);
307 * First check we have the right hindex for this index.
312 while (table[hindex].ie_index != index) {
313 if (++hindex == size)
314 hindex = 0;
318 * Now we want to set table[hindex].ie_index = 0.
323 * at hindex instead of succeeding.
325 * So we must check the clump after hindex for objects
328 * hindex - index of new hole in the clump
336 for (dindex = hindex; index != 0; hindex = dindex) {
343 assert(dindex != hindex);
357 if ((dindex < hindex) ?
358 ((dindex < tindex) && (tindex <= hindex)) :
359 ((dindex < tindex) || (tindex <= hindex)))
363 table[hindex].ie_index = index;