|
From: | Martin Braun |
Subject: | Re: [Discuss-gnuradio] Half-Duplex Relay |
Date: | Thu, 13 Feb 2014 17:48:42 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 |
On 13.02.2014 10:18, David Halls wrote:
My questions is probably stupid, but I want to multiply the payload symbols by a certain gain, say 'G', but I am not clear how to do it. I am not clear how to access the items individually to scale them. As a first step, I tried first replacing the memcpy with for(int i = 0; i < samples_per_packet; i++) out[i] = in[i]; but that of course doesn't successfully replace the functionality?
Sure, why not? However, it probably be the solution with the best performance. You could stick with the memcpy() and use a VOLK kernel afterwards. But your solution seems correct.
M
[Prev in Thread] | Current Thread | [Next in Thread] |