discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] digital_correlate_access_code_bb


From: Thomas Tsou
Subject: Re: [Discuss-gnuradio] digital_correlate_access_code_bb
Date: Sat, 7 Apr 2012 22:40:48 -0400

On Sat, Apr 7, 2012 at 10:12 PM, Marcus D. Leech <address@hidden> 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



reply via email to

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