mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-12-23 22:39:22 -05: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() {
|
||||
std::rotate(&samples_[0], &samples_[decimation_factor], &samples_[taps_count_]);
|
||||
std::move(&samples_[decimation_factor], &samples_[taps_count_], &samples_[0]);
|
||||
}
|
||||
|
||||
} /* namespace matched_filter */
|
||||
|
Loading…
Reference in New Issue
Block a user