On Sat, Apr 7, 2012 at 10:12 PM, Marcus D. Leech <mle...@ripnet.com> wrote: > Here's a little beauty of a code snippet: > > d_access_code = 0; > for (unsigned i=0; i < 64; i++){ > d_access_code <<= 1; > if (i < len) > d_access_code |= access_code[i] & 1; // look at LSB only > }
The piece was committed almost 6 years ago - into CVS - and has not changed since. Like many things, I'm sure it seemed like a much better idea at the time. Thomas _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio