Quantcast
Browsing all 3 articles
Browse latest View live

Answer by LeftRight92 for Linear Feedback Shift Register efficiency

Have gone with the following solution: public int DoShift() { //Remember falloff, shift register, add new bit int result = Contents & 1; Contents = (Contents >> 1) ^ ((CountBits(Contents...

View Article


Answer by olegarch for Linear Feedback Shift Register efficiency

Try this: public int DoShift() { int newBit = 1 << (length - 1); // you can save it as class member int result = Contents & 1; int feedback = Contents & tapSequence; Contents >>= 1;...

View Article


Linear Feedback Shift Register efficiency

I have the following code implement a shift action of a linear feedback shift register: public int DoShift() { //Find new top bit int feedback = Contents & tapSequence; int newBit = 0; for(int i =...

View Article
Browsing all 3 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>