From 0601b38428838d83791b4bffd9ad0869ad7e896f Mon Sep 17 00:00:00 2001 From: schneider Date: Sun, 17 Nov 2024 20:56:29 +0100 Subject: [PATCH] fft_channelizer: use volk_32fc_s32fc_multiply2_32fc --- lib/fft_channelizer_impl.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/fft_channelizer_impl.cc b/lib/fft_channelizer_impl.cc index 3c045a5..3548478 100644 --- a/lib/fft_channelizer_impl.cc +++ b/lib/fft_channelizer_impl.cc @@ -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();