Home
last modified time | relevance | path

Searched refs:lastElement (Results 1 – 4 of 4) sorted by relevance

/haiku/src/tools/fs_shell/
H A Dhash.cpp133 void *element, *lastElement = NULL; in hash_remove() local
136 lastElement = element, element = NEXT(table, element)) { in hash_remove()
138 if (lastElement != NULL) { in hash_remove()
140 PUT_IN_NEXT(table, lastElement, NEXT(table, element)); in hash_remove()
163 void *lastElement = NULL; in hash_remove_current() local
167 iterator->current = lastElement; in hash_remove_current()
169 if (lastElement != NULL) { in hash_remove_current()
171 PUT_IN_NEXT(table, lastElement, NEXT(table, element)); in hash_remove_current()
/haiku/headers/private/kernel/util/
H A DMinMaxHeap.h307 int& lastElement = link->fMinTree ? fMinLastElement : fMaxLastElement; in Insert() local
310 tree[lastElement] = element; in Insert()
311 link->fIndex = lastElement++; in Insert()
377 int lastElement = link->fMinTree ? fMinLastElement : fMaxLastElement; in _MoveDown() local
383 if (child < lastElement) { in _MoveDown()
390 if (child < lastElement) { in _MoveDown()
410 if (2 * link->fIndex + 1 >= lastElement) in _MoveDown()
472 int& lastElement = deleteMin ? fMinLastElement : fMaxLastElement; in _RemoveLast() local
474 ASSERT(lastElement > 0); in _RemoveLast()
475 lastElement--; in _RemoveLast()
[all …]
H A DHeap.h239 Element* lastElement = fElements[fLastElement]; in RemoveRoot() local
240 fElements[0] = lastElement; in RemoveRoot()
241 sGetLink(lastElement)->fIndex = 0; in RemoveRoot()
242 _MoveDown(sGetLink(lastElement)); in RemoveRoot()
/haiku/src/preferences/screen/
H A DScreenMode.cpp384 const pnp_id* lastElement = kPNPIDs + numElements; in GetManufacturerFromID() local
385 const pnp_id* element = std::find(kPNPIDs, lastElement, key); in GetManufacturerFromID()
386 if (element == lastElement) { in GetManufacturerFromID()