Lines Matching refs:index

131     usword_t index = hash(new_referrer) % list->num_allocated, hash_displacement = 0;
132 while (list->refs[index].referrer != NULL) {
133 index++;
135 if (index == list->num_allocated)
136 index = 0;
142 weak_referrer_t &ref = list->refs[index];
154 usword_t index = hash(old_referrer) % list->num_allocated;
155 usword_t start_index = index, hash_displacement = 0;
156 while (list->refs[index].referrer != old_referrer) {
157 index++;
159 if (index == list->num_allocated)
160 index = 0;
161 if (index == start_index || hash_displacement > list->max_hash_displacement) {
166 list->refs[index].referrer = NULL;
182 usword_t index = hash_index;
185 weak_entry_t *entry = table + index;
190 index++; if (index == table_size) index = 0;
191 } while (index != hash_index);
211 usword_t index = hash_index;
216 index++; if (index == table_size) index = 0;
217 if (!table[index].referent) return;
218 weak_entry_t entry = table[index];
219 table[index].referent = NULL;
221 } while (index != hash_index);
259 usword_t index = 0;
260 for (; index < azone->weak_refs_table[counter].referrers.num_allocated; ++index) {
261 if ((refs[index].referrer >= location) && (refs[index].referrer < (location + count))) {
262 void **result = refs[index].referrer;
280 usword_t index = hash_index;
283 weak_entry_t *entry = table + index;
286 index++; if (index == table_size) index = 0;
287 } while (index != hash_index);
355 usword_t index = 0;
356 for (; index < count; ++index) {
357 weak_referrer_t *ref = &entry->referrers.refs[index];
506 usword_t index = 0;
510 index += skips;
513 void **slot = &oldBlock[index];
522 newBlock[index] = NULL;
523 weak_register_no_lock(azone, referent, &newBlock[index], ref.block);
531 ++index;
566 ptrdiff_t index = slot - oldBlock;
567 newBlock[index] = NULL;
568 weak_register_no_lock(azone, referent, &newBlock[index], ref.block);
587 usword_t index = 0;
588 for (; index < azone->weak_refs_table[counter].referrers.num_allocated; ++index) {
589 if (range.in_range(refs[index].referrer)) {
590 block(refs[index]);
604 ptrdiff_t index = ref.referrer - oldBlock;
605 weak_register_no_lock(azone, &newBlock[index], ref.referrer, ref.block);
645 size_t index = 0;
650 index += skips;
653 void **slot = &block[index++];
699 for (usword_t index = 0; index < referrers.num_allocated; ++index) {
700 void **referrer = refs[index].referrer;