[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 01/07: digital: fix access code mask in cor
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 01/07: digital: fix access code mask in correlate_access_code_XX_ts |
Date: |
Thu, 31 Mar 2016 05:49:51 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 2d6c2e7326f5c4fdaff9129413b11ae776cae6d0
Author: Sean Nowlan <address@hidden>
Date: Sat Mar 5 16:06:31 2016 -0500
digital: fix access code mask in correlate_access_code_XX_ts
---
gr-digital/lib/correlate_access_code_bb_ts_impl.cc | 4 ++--
gr-digital/lib/correlate_access_code_ff_ts_impl.cc | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/gr-digital/lib/correlate_access_code_bb_ts_impl.cc
b/gr-digital/lib/correlate_access_code_bb_ts_impl.cc
index c04bf4e..e2fe37d 100644
--- a/gr-digital/lib/correlate_access_code_bb_ts_impl.cc
+++ b/gr-digital/lib/correlate_access_code_bb_ts_impl.cc
@@ -84,8 +84,8 @@ namespace gr {
if(d_len > 64)
return false;
- // set len top bits to 1.
- d_mask = ((~0ULL) >> (64 - d_len)) << (64 - d_len);
+ // set len least significant bits to 1.
+ d_mask = ((~0ULL) >> (64 - d_len));
d_access_code = 0;
for(unsigned i=0; i < d_len; i++){
diff --git a/gr-digital/lib/correlate_access_code_ff_ts_impl.cc
b/gr-digital/lib/correlate_access_code_ff_ts_impl.cc
index 86bbb68..dfbac40 100644
--- a/gr-digital/lib/correlate_access_code_ff_ts_impl.cc
+++ b/gr-digital/lib/correlate_access_code_ff_ts_impl.cc
@@ -84,8 +84,8 @@ namespace gr {
if(d_len > 64)
return false;
- // set len top bits to 1.
- d_mask = ((~0ULL) >> (64 - d_len)) << (64 - d_len);
+ // set len least significant bits to 1.
+ d_mask = ((~0ULL) >> (64 - d_len));
d_access_code = 0;
for(unsigned i=0; i < d_len; i++){
- [Commit-gnuradio] [gnuradio] branch maint updated (8350ee9 -> 0341203), git, 2016/03/31
- [Commit-gnuradio] [gnuradio] 05/07: Merge remote-tracking branch 'nowls/fix_corr_access_code' into maint, git, 2016/03/31
- [Commit-gnuradio] [gnuradio] 01/07: digital: fix access code mask in correlate_access_code_XX_ts,
git <=
- [Commit-gnuradio] [gnuradio] 04/07: volk: update submodule pointer to latest, git, 2016/03/31
- [Commit-gnuradio] [gnuradio] 07/07: Merge remote-tracking branch 'jgilbert/template_expansion' into maint, git, 2016/03/31
- [Commit-gnuradio] [gnuradio] 06/07: Merge remote-tracking branch 'jgilbert/head_nitems_fix' into maint, git, 2016/03/31
- [Commit-gnuradio] [gnuradio] 03/07: Updated gr_modtool CMake files to properly handle template expansion. Previously template expansion failed due to incorrectly configured python paths, git, 2016/03/31
- [Commit-gnuradio] [gnuradio] 02/07: head block nitems setter now takes uint64_t instead of 'int' allowing values greater than 2^31 to be set, git, 2016/03/31