Lines Matching refs:weight
42 while (weight[tmp] < weight[heap[zz >> 1]]) { \
54 #define DOWNHEAP1(heap, weight, Heap) \ argument
64 && weight[heap[yy+1]] < weight[heap[yy]]) \
66 if (weight[tmp] < weight[heap[yy]]) \
77 void DOWNHEAP1(int32_t *heap, int32_t *weight, int32_t nHeap) in DOWNHEAP1() argument
87 && weight[heap[yy + 1]] < weight[heap[yy]]) in DOWNHEAP1()
89 if (weight[tmp] < weight[heap[yy]]) in DOWNHEAP1()
120 #define weight (s->BZ2_hbMakeCodeLengths__weight) in BZ2_hbMakeCodeLengths() macro
124 weight[i+1] = (freq[i] == 0 ? 1 : freq[i]) << 8; in BZ2_hbMakeCodeLengths()
131 weight[0] = 0; 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()
148 weight[nNodes] = ADDWEIGHTS(weight[n1], weight[n2]); in BZ2_hbMakeCodeLengths()
191 j = weight[i] >> 8; in BZ2_hbMakeCodeLengths()
195 weight[i] = j << 8; in BZ2_hbMakeCodeLengths()
199 #undef weight in BZ2_hbMakeCodeLengths()