[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] cannot make new signal processing block
From: |
nexy_sm |
Subject: |
Re: [Discuss-gnuradio] cannot make new signal processing block |
Date: |
Wed, 17 Oct 2012 08:45:21 -0700 (PDT) |
Hm, I see now, and don't get, how you specifu number of inputs, and what
exactly means Vec Length (vlen)
and what could be wrong with implementation like this:
int
gr_add_cc::work (int noutput_items,
gr_vector_const_void_star &input_items,
gr_vector_void_star &output_items)
{
gr_complex *optr = (gr_complex *) output_items[0];
int ninputs = input_items.size ();
for (size_t i = 0; i < noutput_items; i++){
gr_complex acc = ((gr_complex *) input_items[0])[i];
for (int j = 1; j < ninputs; j++)
acc += ((gr_complex *) input_items[j])[i];
*optr++ = (gr_complex) acc;
}
return noutput_items;
}
And just one question, in the block gr_add_const_ff, you did loop unrolling
by yourself, is that because you don't believe to the compiler or something
else?
Thanks again
Nemanja
--
View this message in context:
http://gnuradio.4.n7.nabble.com/cannot-make-new-signal-processing-block-tp37924p38034.html
Sent from the GnuRadio mailing list archive at Nabble.com.
- Re: [Discuss-gnuradio] cannot make new signal processing block, (continued)
- Re: [Discuss-gnuradio] cannot make new signal processing block, nexy_sm, 2012/10/15
- Re: [Discuss-gnuradio] cannot make new signal processing block, Tom Rondeau, 2012/10/15
- Re: [Discuss-gnuradio] cannot make new signal processing block, nexy_sm, 2012/10/15
- Re: [Discuss-gnuradio] cannot make new signal processing block, Tom Rondeau, 2012/10/15
- Re: [Discuss-gnuradio] cannot make new signal processing block, nexy_sm, 2012/10/16
- Re: [Discuss-gnuradio] cannot make new signal processing block, Martin Braun (CEL), 2012/10/16
- Re: [Discuss-gnuradio] cannot make new signal processing block, nexy_sm, 2012/10/16
- Re: [Discuss-gnuradio] cannot make new signal processing block, Martin Braun (CEL), 2012/10/16
- Re: [Discuss-gnuradio] cannot make new signal processing block, Tom Rondeau, 2012/10/16
- Re: [Discuss-gnuradio] cannot make new signal processing block, nexy_sm, 2012/10/17
- Re: [Discuss-gnuradio] cannot make new signal processing block,
nexy_sm <=
- Re: [Discuss-gnuradio] cannot make new signal processing block, Martin Braun (CEL), 2012/10/17
- Re: [Discuss-gnuradio] cannot make new signal processing block, Tom Rondeau, 2012/10/17
- Re: [Discuss-gnuradio] cannot make new signal processing block, nexy_sm, 2012/10/17