Home
last modified time | relevance | path

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

/ext-ds/src/ds/
H A Dds_priority_queue.c56 queue->nodes = reallocate_nodes(queue->nodes, capacity); in reallocate_to_capacity()
98 ds_priority_queue_node_t *nodes; in ds_priority_queue_push() local
105 nodes = queue->nodes; in ds_priority_queue_push()
123 nodes[index] = nodes[parent]; in ds_priority_queue_push()
126 node = &queue->nodes[index]; in ds_priority_queue_push()
150 ds_priority_queue_node_t *nodes = queue->nodes; in ds_priority_queue_pop() local
168 bottom = nodes[size - 1]; in ds_priority_queue_pop()
189 nodes[index] = nodes[swap]; in ds_priority_queue_pop()
192 nodes[index] = bottom; in ds_priority_queue_pop()
233 return &queue->nodes[0].value; in ds_priority_queue_peek()
[all …]
H A Dds_priority_queue.h12 ds_priority_queue_node_t *nodes; member
23 ds_priority_queue_node_t *_node = &_queue->nodes[0]; \
24 ds_priority_queue_node_t *_last = &_queue->nodes[queue->size - 1]; \
/ext-ds/src/php/objects/
H A Dphp_priority_queue.c47 ds_priority_queue_node_t *nodes = ds_priority_queue_create_sorted_buffer(queue); in php_ds_priority_queue_serialize() local
48 ds_priority_queue_node_t *pos = nodes; in php_ds_priority_queue_serialize()
49 ds_priority_queue_node_t *end = nodes + queue->size; in php_ds_priority_queue_serialize()
62 efree(nodes); in php_ds_priority_queue_serialize()
/ext-ds/src/php/handlers/
H A Dphp_priority_queue_handlers.c69 *gc_data = (zval*) pq->nodes;

Completed in 7 milliseconds