Home | History | Annotate | Download | only in Analysis

Lines Matching refs:Amount

124 void Distribution::add(const BlockNode &Node, uint64_t Amount,
126 assert(Amount && "invalid weight of 0");
127 uint64_t NewTotal = Total + Amount;
138 Weights.push_back(Weight(Type, Node, Amount));
143 if (!W.Amount) {
149 assert(OtherW.Amount && "Expected non-zero weight");
150 if (W.Amount > W.Amount + OtherW.Amount)
152 W.Amount = UINT64_MAX;
154 W.Amount += OtherW.Amount;
227 Weights.front().Amount = 1;
247 return Sum + W.Amount;
262 W.Amount = std::max(UINT64_C(1), shiftRightAndRound(W.Amount, Shift));
263 assert(W.Amount <= UINT32_MAX);
266 Total += W.Amount;
437 BlockMass Taken = D.takeMass(W.Amount);
831 BlockMass Taken = D.takeMass(W.Amount);
842 BlockMass Taken = D.takeMass(W.Amount);