Searched refs:LevelSize (Results 1 – 2 of 2) sorted by relevance
32 while (LevelSize(num_levels_ - 1) < N) { in WeightedPicker()39 level_[l] = new int32[LevelSize(l)]; in WeightedPicker()149 for (int i = N_; i < LevelSize(num_levels_ - 1); i++) leaves[i] = 0; in SetAllWeights()161 for (int i = N_; i < LevelSize(num_levels_ - 1); i++) leaves[i] = 0; in SetWeightsFromArray()171 for (int i = 0; i < LevelSize(l); i++) { in RebuildTreeWeights()184 if (new_size <= LevelSize(num_levels_ - 1)) { in Resize()
112 static int LevelSize(int level) { return 1 << level; } in LevelSize() function