commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 03/07: gr-dtv: One more modulo based perfor


From: git
Subject: [Commit-gnuradio] [gnuradio] 03/07: gr-dtv: One more modulo based performance enhancement.
Date: Wed, 31 Aug 2016 19:40:52 +0000 (UTC)

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

jcorgan pushed a commit to branch master
in repository gnuradio.

commit 2b05d00a4354a8ba61f7a2452ba7e0e259f1ae5a
Author: Ron Economos <address@hidden>
Date:   Tue Aug 23 00:00:19 2016 -0700

    gr-dtv: One more modulo based performance enhancement.
---
 gr-dtv/lib/dvbt2/dvbt2_interleaver_bb_impl.cc | 20 ++++++++++++++++----
 1 file changed, 16 insertions(+), 4 deletions(-)

diff --git a/gr-dtv/lib/dvbt2/dvbt2_interleaver_bb_impl.cc 
b/gr-dtv/lib/dvbt2/dvbt2_interleaver_bb_impl.cc
index 82b7c94..9ebfb14 100644
--- a/gr-dtv/lib/dvbt2/dvbt2_interleaver_bb_impl.cc
+++ b/gr-dtv/lib/dvbt2/dvbt2_interleaver_bb_impl.cc
@@ -249,7 +249,10 @@ namespace gr {
               offset = twist[col];
               for (int row = 0; row < rows; row++) {
                 tempv[offset + (rows * col)] = tempu[index++];
-                offset = (offset + 1) % rows;
+                offset++;
+                if (offset == rows) {
+                  offset = 0;
+                }
               }
             }
             index = 0;
@@ -327,7 +330,10 @@ namespace gr {
               offset = twist[col];
               for (int row = 0; row < rows; row++) {
                 tempv[offset + (rows * col)] = tempu[index++];
-                offset = (offset + 1) % rows;
+                offset++;
+                if (offset == rows) {
+                  offset = 0;
+                }
               }
             }
             index = 0;
@@ -406,7 +412,10 @@ namespace gr {
                 offset = twist256n[col];
                 for (int row = 0; row < rows; row++) {
                   tempv[offset + (rows * col)] = tempu[index++];
-                  offset = (offset + 1) % rows;
+                  offset++;
+                  if (offset == rows) {
+                    offset = 0;
+                  }
                 }
               }
               index = 0;
@@ -479,7 +488,10 @@ namespace gr {
                 offset = twist256s[col];
                 for (int row = 0; row < rows; row++) {
                   tempv[offset + (rows * col)] = tempu[index++];
-                  offset = (offset + 1) % rows;
+                  offset++;
+                  if (offset == rows) {
+                    offset = 0;
+                  }
                 }
               }
               index = 0;



reply via email to

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