Lines Matching refs:index
51 #define INDEX_TO_NODE(index) (gl_list_node_t)(uintptr_t)(size_t)((index) + 1)
112 uintptr_t index = NODE_TO_INDEX (node);
113 if (!(index < list->count))
116 return list->elements[index];
122 uintptr_t index = NODE_TO_INDEX (node);
123 if (!(index < list->count))
126 index++;
127 if (index < list->count)
128 return INDEX_TO_NODE (index);
136 uintptr_t index = NODE_TO_INDEX (node);
137 if (!(index < list->count))
140 if (index > 0)
141 return INDEX_TO_NODE (index - 1);
216 size_t index = gl_array_indexof_from_to (list, start_index, end_index, elt);
217 return INDEX_TO_NODE (index);
275 uintptr_t index = NODE_TO_INDEX (node);
280 if (!(index < count))
283 position = index;
298 uintptr_t index = NODE_TO_INDEX (node);
303 if (!(index < count))
306 position = index + 1;
341 uintptr_t index = NODE_TO_INDEX (node);
346 if (!(index < count))
349 position = index;
514 /* We have an element equal to ELT at index MID. But we need
515 the minimal such index. */
561 size_t index =
563 return INDEX_TO_NODE (index);
570 size_t index =
572 return INDEX_TO_NODE (index);
607 size_t index = gl_array_sortedlist_indexof (list, compar, elt);
608 if (index == (size_t)(-1))
611 return gl_array_remove_at (list, index);