All pastes #884923 Raw Edit

Something

public text v1 · immutable
#884923 ·published 2008-01-30 17:52 UTC
rendered paste body
int main() {
	// Reg 1, 50% (uncorrelated), tap seq=1,7
	// Reg 2, 75% correlation, tap seq=1,10
	// Reg 3, 75% correlation, tap seq=1,10,11,13
	int reg1length=128,reg2length=2048,reg3length=8192;
	int reg1,reg2,reg3;
	int reg1Output[2000],reg2Output[2000],reg3Output[2000];

	for(reg1=1;reg1<128;reg1++) {
		int tempReg1=reg1;
		for(int i=0;i<2000;i++) {
			reg1Output[i] = countBitsMod2(tempReg1);
			tempReg1 = shift(tempReg1,7);
		}
		// Need to compare the reg1Output array with the string on the web
	}
			
}