Skip to content

Commit

Permalink
fft_channelizer: use volk_32fc_s32fc_multiply2_32fc
Browse files Browse the repository at this point in the history
  • Loading branch information
schneider42 committed Nov 17, 2024
1 parent 40315dd commit 0601b38
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/fft_channelizer_impl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -342,17 +342,19 @@ int fft_channelizer_impl::work(int noutput_items,
// Construct the input to the reverse FFT. We need to copy the two halves
// as the output of the initial FFT still is [DC, Positive Freq, Negative
// Freq].
volk_32fc_s32fc_multiply_32fc(

gr_complex scale = 1. / d_fft_size;
volk_32fc_s32fc_multiply2_32fc(
&d_ifft.get_inbuf()[0],
&d_fft.get_outbuf()[positive_offset(
d_fft_size, d_output_step, j, d_ifft_size)],
1. / d_fft_size,
&scale,
d_ifft_size / 2);
volk_32fc_s32fc_multiply_32fc(
volk_32fc_s32fc_multiply2_32fc(
&d_ifft.get_inbuf()[d_ifft_size / 2],
&d_fft.get_outbuf()[negative_offset(
d_fft_size, d_output_step, j, d_ifft_size)],
1. / d_fft_size,
&scale,
d_ifft_size / 2);
d_ifft.execute();

Expand Down

0 comments on commit 0601b38

Please sign in to comment.