Searched refs:heap_parent (Results 1 - 2 of 2) sorted by relevance

/freebsd-10.1-release/contrib/ntp/lib/isc/
H A Dheap.c40 * Note: to make heap_parent and heap_left easy to compute, the first
45 #define heap_parent(i) ((i) >> 1) macro
56 * holds true: for every element i > 1, heap_parent(i) has a priority
61 heap->array[heap_parent(i)]))
149 for (p = heap_parent(i) ;
151 i = p, p = heap_parent(i)) {
/freebsd-10.1-release/sys/cddl/dev/cyclic/
H A Dcyclic.c364 cyc_index_t heap_parent, heap_current = ndx; local
372 heap_parent = CYC_HEAP_PARENT(heap_current);
376 parent = heap[heap_parent];
388 heap[heap_parent] = current;
394 if (heap_parent == 0)
397 heap_current = heap_parent;
398 heap_parent = CYC_HEAP_PARENT(heap_current);

Completed in 100 milliseconds