Skip to content

Commit 0406363

Browse files
herlesupreethcodebot
authored andcommitted
sched: replace std::fill with resizing and initialization of bounded_bitset
1 parent 7486ac3 commit 0406363

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/scheduler/ue_scheduling/ue_configuration.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -454,9 +454,10 @@ static void apply_pdcch_candidate_monitoring_limits(frame_pdcch_candidate_list&
454454
std::array<std::array<bounded_bitset<maximum_nof_cces>, NOF_OFDM_SYM_PER_SLOT_NORMAL_CP>, MAX_NOF_CORESETS_PER_BWP>
455455
cce_bitmap_per_coreset_per_first_pdcch_symb;
456456
for (unsigned cs_idx = 0; cs_idx < MAX_NOF_CORESETS_PER_BWP; ++cs_idx) {
457-
std::fill(cce_bitmap_per_coreset_per_first_pdcch_symb[cs_idx].begin(),
458-
cce_bitmap_per_coreset_per_first_pdcch_symb[cs_idx].end(),
459-
bounded_bitset<maximum_nof_cces>(maximum_nof_cces));
457+
for (unsigned symb = 0; symb < NOF_OFDM_SYM_PER_SLOT_NORMAL_CP; ++symb) {
458+
cce_bitmap_per_coreset_per_first_pdcch_symb[cs_idx][symb].resize(maximum_nof_cces);
459+
cce_bitmap_per_coreset_per_first_pdcch_symb[cs_idx][symb].reset();
460+
}
460461
}
461462
auto get_cce_monitored_sum = [&cce_bitmap_per_coreset_per_first_pdcch_symb]() {
462463
unsigned monitored_cces = 0;

0 commit comments

Comments
 (0)