Lines Matching refs:spl_heap_elem

96 static zend_always_inline void *spl_heap_elem(spl_ptr_heap *heap, size_t i) {  in spl_heap_elem()  function
277 …for (i = heap->count; i > 0 && heap->cmp(spl_heap_elem(heap, (i-1)/2), elem, cmp_userdata) < 0; i … in spl_ptr_heap_insert()
278 spl_heap_elem_copy(heap, spl_heap_elem(heap, i), spl_heap_elem(heap, (i-1)/2)); in spl_ptr_heap_insert()
287 spl_heap_elem_copy(heap, spl_heap_elem(heap, i), elem); in spl_ptr_heap_insert()
310 spl_heap_elem_copy(heap, elem, spl_heap_elem(heap, 0)); in spl_ptr_heap_delete_top()
312 heap->dtor(spl_heap_elem(heap, 0)); in spl_ptr_heap_delete_top()
315 bottom = spl_heap_elem(heap, --heap->count); in spl_ptr_heap_delete_top()
320 …if (j != heap->count && heap->cmp(spl_heap_elem(heap, j+1), spl_heap_elem(heap, j), cmp_userdata) … in spl_ptr_heap_delete_top()
325 if(heap->cmp(bottom, spl_heap_elem(heap, j), cmp_userdata) < 0) { in spl_ptr_heap_delete_top()
326 spl_heap_elem_copy(heap, spl_heap_elem(heap, i), spl_heap_elem(heap, j)); in spl_ptr_heap_delete_top()
337 void *to = spl_heap_elem(heap, i); in spl_ptr_heap_delete_top()
362 heap->ctor(spl_heap_elem(heap, i)); in spl_ptr_heap_clone()
373 heap->dtor(spl_heap_elem(heap, i)); in spl_ptr_heap_destroy()
536 spl_pqueue_elem *pq_elem = spl_heap_elem(intern->heap, i); in spl_heap_object_get_debug_info()
541 zval *elem = spl_heap_elem(intern->heap, i); in spl_heap_object_get_debug_info()
918 return spl_heap_elem(object->heap, 0); in spl_heap_it_get_current_data()
938 spl_pqueue_elem *elem = spl_heap_elem(object->heap, 0); in spl_pqueue_it_get_current_data()
1033 zval *element = spl_heap_elem(intern->heap, 0); in SPL_METHOD()
1052 spl_pqueue_elem *elem = spl_heap_elem(intern->heap, 0); in SPL_METHOD()