Home | History | Annotate | Download | only in Analysis

Lines Matching refs:Amount

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