Lines Matching refs:idx
81 int idx;
95 idx = radix_pos(index, 0);
97 item = node->slots[idx];
103 node->slots[idx] = NULL;
115 idx = radix_pos(index, height);
125 int idx;
169 idx = radix_pos(index, height);
170 if (node->slots[idx] == NULL)
172 node = node->slots[idx];
176 for (idx = 0; idx != height; idx++) {
177 temp[idx] = calloc(1, sizeof(*node));
178 if (temp[idx] == NULL) {
179 while (idx--)
180 free(temp[idx]);
193 idx = radix_pos(index, height);
194 node->slots[idx] = temp[height - 1];
196 node = node->slots[idx];
203 idx = radix_pos(index, 0);
204 if (node->slots[idx])
207 node->slots[idx] = item;