[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;
- [Commit-gnuradio] [gnuradio] branch master updated (f14e631 -> bb8a76f), git, 2016/08/31
- [Commit-gnuradio] [gnuradio] 07/07: Merge remote-tracking branch 'drmpeg/fast-mult', git, 2016/08/31
- [Commit-gnuradio] [gnuradio] 03/07: gr-dtv: One more modulo based performance enhancement.,
git <=
- [Commit-gnuradio] [gnuradio] 01/07: gr-dtv: Reduce DVB-T transmitter CPU usage., git, 2016/08/31
- [Commit-gnuradio] [gnuradio] 04/07: gr-dtv: Use std::cerr instead of GR_LOG for non-block class., git, 2016/08/31
- [Commit-gnuradio] [gnuradio] 06/07: Merge remote-tracking branch 'drmpeg/error-cleanup', git, 2016/08/31
- [Commit-gnuradio] [gnuradio] 02/07: gr-dtv: Remove all exit(1) calls and replace with exception., git, 2016/08/31
- [Commit-gnuradio] [gnuradio] 05/07: gr-blocks: Expose non-vector VOLK multiply constant block., git, 2016/08/31