Lines Matching refs:Amount
129 void Distribution::add(const BlockNode &Node, uint64_t Amount, in add() argument
131 assert(Amount && "invalid weight of 0"); in add()
132 uint64_t NewTotal = Total + Amount; in add()
143 Weights.push_back(Weight(Type, Node, Amount)); in add()
148 if (!W.Amount) { in combineWeight()
154 assert(OtherW.Amount && "Expected non-zero weight"); in combineWeight()
155 if (W.Amount > W.Amount + OtherW.Amount) in combineWeight()
157 W.Amount = UINT64_MAX; in combineWeight()
159 W.Amount += OtherW.Amount; in combineWeight()
232 Weights.front().Amount = 1; in normalize()
252 return Sum + W.Amount; in normalize()
267 W.Amount = std::max(UINT64_C(1), shiftRightAndRound(W.Amount, Shift)); in normalize()
268 assert(W.Amount <= UINT32_MAX); in normalize()
271 Total += W.Amount; in normalize()
442 BlockMass Taken = D.takeMass(W.Amount); in distributeMass()
850 BlockMass Taken = D.takeMass(W.Amount); in adjustLoopHeaderMass()
861 BlockMass Taken = D.takeMass(W.Amount); in distributeIrrLoopHeaderMass()