On Sat, Apr 7, 2012 at 10:12 PM, Marcus D. Leech <[email protected]> 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 [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
