Searched refs:swap (Results 1 – 1 of 1) sorted by relevance
147 uint32_t swap; in ds_priority_queue_pop() local176 for (index = 0; index < half; index = swap) { in ds_priority_queue_pop()177 swap = LEFT(index); in ds_priority_queue_pop()180 … if (swap < queue->size && ds_priority_queue_node_compare(&nodes[swap], &nodes[swap + 1]) < 0) { in ds_priority_queue_pop()181 swap++; in ds_priority_queue_pop()185 if (ds_priority_queue_node_compare(&nodes[swap], &bottom) < 0) { in ds_priority_queue_pop()189 nodes[index] = nodes[swap]; in ds_priority_queue_pop()
Completed in 7 milliseconds