Lines Matching refs:heap
41 tmp = heap[zz]; \
42 while (weight[tmp] < weight[heap[zz >> 1]]) { \
43 heap[zz] = heap[zz >> 1]; \
46 heap[zz] = tmp; \
54 #define DOWNHEAP1(heap, weight, Heap) \ argument
58 tmp = heap[zz]; \
64 && weight[heap[yy+1]] < weight[heap[yy]]) \
66 if (weight[tmp] < weight[heap[yy]]) \
68 heap[zz] = heap[yy]; \
71 heap[zz] = tmp; \
77 void DOWNHEAP1(int32_t *heap, int32_t *weight, int32_t nHeap) in DOWNHEAP1() argument
81 tmp = heap[zz]; in DOWNHEAP1()
87 && weight[heap[yy + 1]] < weight[heap[yy]]) in DOWNHEAP1()
89 if (weight[tmp] < weight[heap[yy]]) in DOWNHEAP1()
91 heap[zz] = heap[yy]; in DOWNHEAP1()
94 heap[zz] = tmp; in DOWNHEAP1()
119 #define heap (s->BZ2_hbMakeCodeLengths__heap) in BZ2_hbMakeCodeLengths() macro
130 heap[0] = 0; in BZ2_hbMakeCodeLengths()
137 heap[nHeap] = i; in BZ2_hbMakeCodeLengths()
144 n1 = heap[1]; heap[1] = heap[nHeap]; nHeap--; DOWNHEAP1(heap, weight, nHeap); in BZ2_hbMakeCodeLengths()
145 n2 = heap[1]; heap[1] = heap[nHeap]; nHeap--; DOWNHEAP1(heap, weight, nHeap); in BZ2_hbMakeCodeLengths()
151 heap[nHeap] = nNodes; in BZ2_hbMakeCodeLengths()
198 #undef heap in BZ2_hbMakeCodeLengths()