mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-09-12 07:46:03 +00:00
Speedup in code_resampler - avoid floor function
Direct cast to integer takes the floor anyway.
This commit is contained in:
@@ -112,7 +112,7 @@ public:
|
||||
|
||||
for( ; j < num_samples_this_iter; ++j )
|
||||
{
|
||||
associated_chip_index = std::floor(tcode_chips);
|
||||
associated_chip_index = static_cast< int >(tcode_chips);
|
||||
*curr_sample = orig_code[associated_chip_index];
|
||||
tcode_chips += code_phase_step;
|
||||
++curr_sample;
|
||||
|
Reference in New Issue
Block a user