Lines Matching refs:Amount
103 void Distribution::add(const BlockNode &Node, uint64_t Amount, in add() argument
105 assert(Amount && "invalid weight of 0"); in add()
106 uint64_t NewTotal = Total + Amount; in add()
117 Weights.push_back(Weight(Type, Node, Amount)); in add()
122 if (!W.Amount) { in combineWeight()
128 assert(OtherW.Amount && "Expected non-zero weight"); in combineWeight()
129 if (W.Amount > W.Amount + OtherW.Amount) in combineWeight()
131 W.Amount = UINT64_MAX; in combineWeight()
133 W.Amount += OtherW.Amount; in combineWeight()
205 Weights.front().Amount = 1; in normalize()
225 return Sum + W.Amount; in normalize()
240 W.Amount = std::max(UINT64_C(1), shiftRightAndRound(W.Amount, Shift)); in normalize()
241 assert(W.Amount <= UINT32_MAX); in normalize()
244 Total += W.Amount; in normalize()
411 BlockMass Taken = D.takeMass(W.Amount); in distributeMass()
790 BlockMass Taken = D.takeMass(W.Amount); in adjustLoopHeaderMass()