Home | History | Annotate | Download | only in tests

Lines Matching full:heap

3244    zz = z; tmp = heap[zz];                            \
3245 while (weight[tmp] < weight[heap[zz >> 1]]) { \
3246 heap[zz] = heap[zz >> 1]; \
3249 heap[zz] = tmp; \
3255 zz = z; tmp = heap[zz]; \
3260 weight[heap[yy+1]] < weight[heap[yy]]) \
3262 if (weight[tmp] < weight[heap[yy]]) break; \
3263 heap[zz] = heap[yy]; \
3266 heap[zz] = tmp; \
3277 Nodes and heap entries run from 1. Entry 0
3278 for both the heap and nodes is a sentinel.
3283 Int32 heap [ BZ_MAX_ALPHA_SIZE + 2 ];
3295 heap[0] = 0;
3302 heap[nHeap] = i;
3309 n1 = heap[1]; heap[1] = heap[nHeap]; nHeap--; DOWNHEAP(1);
3310 n2 = heap[1]; heap[1] = heap[nHeap]; nHeap--; DOWNHEAP(1);
3316 heap[nHeap] = nNodes;