mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2024-12-14 12:08:40 +00:00
Use std::move to move samples in buffer.
Yes, std::rotate works, but it's fancy and does unnecessary work.
This commit is contained in:
parent
4141d6fe0f
commit
ab28639a3d
@ -40,7 +40,7 @@ bool MatchedFilter::execute_once(
|
|||||||
}
|
}
|
||||||
|
|
||||||
void MatchedFilter::shift_by_decimation_factor() {
|
void MatchedFilter::shift_by_decimation_factor() {
|
||||||
std::rotate(&samples_[0], &samples_[decimation_factor], &samples_[taps_count_]);
|
std::move(&samples_[decimation_factor], &samples_[taps_count_], &samples_[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
} /* namespace matched_filter */
|
} /* namespace matched_filter */
|
||||||
|
Loading…
Reference in New Issue
Block a user