Lines Matching refs:sz
59 int sz = GET_HEAP_SIZE(heap), nxt; in down_heap() local
62 while ( (nxt = (pos << 1)) <= sz ) in down_heap()
64 if ( ((nxt+1) <= sz) && (heap[nxt+1]->expires < heap[nxt]->expires) ) in down_heap()
97 int sz = GET_HEAP_SIZE(heap); in remove_from_heap() local
100 if ( unlikely(pos == sz) ) in remove_from_heap()
102 SET_HEAP_SIZE(heap, sz-1); in remove_from_heap()
106 heap[pos] = heap[sz]; in remove_from_heap()
109 SET_HEAP_SIZE(heap, --sz); in remove_from_heap()
124 int sz = GET_HEAP_SIZE(heap); in add_to_heap() local
127 if ( unlikely(sz == GET_HEAP_LIMIT(heap)) ) in add_to_heap()
130 SET_HEAP_SIZE(heap, ++sz); in add_to_heap()
131 heap[sz] = t; in add_to_heap()
132 t->heap_offset = sz; in add_to_heap()
133 up_heap(heap, sz); in add_to_heap()