View Single Post
  #4 (permalink)  
Old 07-05-2009, 02:02 AM
Steve Pope
Guest
 
Posts: n/a
Default Re: Generating Maximum Length Sequence using Galois LFSR

robert bristow-johnson <[email protected]> wrote:

>On Jul 4, 12:55*am, Nicholas Kinar <n.ki...@usask.ca> wrote:


>> for(int i = 0; i < L; i++)


>> lfsr = (lfsr >> 1) ^ (-(lfsr & 1u) & taps);


>i dunno what the minus sign is for. i don't think it belongs there.


Looks right to me. Read the code again.

Steve
Reply With Quote