Lines Matching refs:heap
83 tmp = heap[zz]; \
84 while (weight[tmp] < weight[heap[zz >> 1]]) { \
85 heap[zz] = heap[zz >> 1]; \
88 heap[zz] = tmp; \
95 tmp = heap[zz]; \
100 if (yy < nHeap && weight[heap[yy + 1]] < weight[heap[yy]]) \
102 if (weight[tmp] < weight[heap[yy]]) \
104 heap[zz] = heap[yy]; \
107 heap[zz] = tmp; \
119 Int32 heap[BZ_MAX_ALPHA_SIZE + 2]; in BZ2_hbMakeCodeLengths() local
130 heap[0] = 0; in BZ2_hbMakeCodeLengths()
137 heap[nHeap] = i; in BZ2_hbMakeCodeLengths()
144 n1 = heap[1]; in BZ2_hbMakeCodeLengths()
145 heap[1] = heap[nHeap]; in BZ2_hbMakeCodeLengths()
148 n2 = heap[1]; in BZ2_hbMakeCodeLengths()
149 heap[1] = heap[nHeap]; in BZ2_hbMakeCodeLengths()
157 heap[nHeap] = nNodes; in BZ2_hbMakeCodeLengths()