diff options
author | Josh Morman <jmorman@gnuradio.org> | 2022-11-10 11:44:53 -0500 |
---|---|---|
committer | Josh Morman <jmorman@gnuradio.org> | 2022-11-10 11:44:55 -0500 |
commit | b5b05f7c2a5e708db525fa8c3ef7ff2f1f7816d3 (patch) | |
tree | 5e202f5275b199dee99d37221c0690c63e748935 /blocklib/math/complex_to_mag_squared/complex_to_mag_squared_cpu.cc | |
parent | filter: pfb_arb_resampler updated to new block api and use optfir (diff) | |
download | gnuradio-dev-4.0-minimal.tar.xz gnuradio-dev-4.0-minimal.zip |
global: strip down to minimal filesetdev-4.0-minimal
As a separate branch to start incorporating broader refactoring changes
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
Diffstat (limited to 'blocklib/math/complex_to_mag_squared/complex_to_mag_squared_cpu.cc')
-rw-r--r-- | blocklib/math/complex_to_mag_squared/complex_to_mag_squared_cpu.cc | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/blocklib/math/complex_to_mag_squared/complex_to_mag_squared_cpu.cc b/blocklib/math/complex_to_mag_squared/complex_to_mag_squared_cpu.cc deleted file mode 100644 index 826a53679..000000000 --- a/blocklib/math/complex_to_mag_squared/complex_to_mag_squared_cpu.cc +++ /dev/null @@ -1,40 +0,0 @@ -/* -*- c++ -*- */ -/* - * Copyright 2012 Free Software Foundation, Inc. - * - * This file is part of GNU Radio - * - * SPDX-License-Identifier: GPL-3.0-or-later - * - */ - -#include "complex_to_mag_squared_cpu.h" -#include "complex_to_mag_squared_cpu_gen.h" -#include <volk/volk.h> - -namespace gr { -namespace math { -complex_to_mag_squared_cpu::complex_to_mag_squared_cpu(const block_args& args) - : INHERITED_CONSTRUCTORS, d_vlen(args.vlen) -{ - // const int alignment_multiple = volk_get_alignment() / sizeof(float); - // set_output_multiple(std::max(1, alignment_multiple)); -} - -work_return_t complex_to_mag_squared_cpu::work(work_io& wio) -{ - auto noutput_items = wio.outputs()[0].n_items; - int noi = noutput_items * d_vlen; - - auto iptr = wio.inputs()[0].items<gr_complex>(); - auto optr = wio.outputs()[0].items<float>(); - - volk_32fc_magnitude_squared_32f(optr, iptr, noi); - - wio.produce_each(noutput_items); - return work_return_t::OK; -} - - -} // namespace math -} // namespace gr |