commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 01/02: blocks: fix subtract_ff


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/02: blocks: fix subtract_ff
Date: Fri, 1 Aug 2014 02:02:06 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch master
in repository gnuradio.

commit de1e0f41ebeec795430ec2bd6d0cc7b162ba6202
Author: Nick Foster <address@hidden>
Date:   Thu Jul 31 17:02:14 2014 -0700

    blocks: fix subtract_ff
---
 gr-blocks/lib/sub_ff_impl.cc | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gr-blocks/lib/sub_ff_impl.cc b/gr-blocks/lib/sub_ff_impl.cc
index d3a0815..8ea1a47 100644
--- a/gr-blocks/lib/sub_ff_impl.cc
+++ b/gr-blocks/lib/sub_ff_impl.cc
@@ -68,8 +68,7 @@ namespace gr {
       //}
 
       const float *in = (const float*)input_items[0];
-      for(int i = 0; i < noi; i++)
-        out[i] = -in[i];
+      memcpy(out, in, noi*sizeof(float));
       for(int i = 1; i < ninputs; i++) {
         in = (const float*)input_items[i];
         volk_32f_x2_subtract_32f(out, out, in, noi);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]