Lines Matching refs:Amount
144 void Distribution::add(const BlockNode &Node, uint64_t Amount, in add() argument
146 assert(Amount && "invalid weight of 0"); in add()
147 uint64_t NewTotal = Total + Amount; in add()
158 Weights.push_back(Weight(Type, Node, Amount)); in add()
163 if (!W.Amount) { in combineWeight()
169 assert(OtherW.Amount && "Expected non-zero weight"); in combineWeight()
170 if (W.Amount > W.Amount + OtherW.Amount) in combineWeight()
172 W.Amount = UINT64_MAX; in combineWeight()
174 W.Amount += OtherW.Amount; in combineWeight()
247 Weights.front().Amount = 1; in normalize()
267 return Sum + W.Amount; in normalize()
282 W.Amount = std::max(UINT64_C(1), shiftRightAndRound(W.Amount, Shift)); in normalize()
283 assert(W.Amount <= UINT32_MAX); in normalize()
286 Total += W.Amount; in normalize()
457 BlockMass Taken = D.takeMass(W.Amount); in distributeMass()
865 BlockMass Taken = D.takeMass(W.Amount); in adjustLoopHeaderMass()
876 BlockMass Taken = D.takeMass(W.Amount); in distributeIrrLoopHeaderMass()