Searched refs:remaining_weight (Results 1 – 1 of 1) sorted by relevance
69 int remaining_weight = weight; in AddWithWeight() local72 sampler_->AddWithWeight(value, remaining_weight % sampler_->capacity()); in AddWithWeight()73 remaining_weight /= sampler_->capacity(); in AddWithWeight()76 while (remaining_weight != 0) { in AddWithWeight()80 if ((remaining_weight & 1) != 0) { in AddWithWeight()84 remaining_weight >>= 1; in AddWithWeight()