plan 9 kernel history: overview | file list | diff list

1997/0418/pc/devether.c (diff list | history)

1997/0415/sys/src/9/pc/devether.c:398,4061997/0418/sys/src/9/pc/devether.c:398,404 (short | long | prev | next)
1997/0415    
	for(i = 0; i < len; i++){ 
		b = *p++; 
		for(j = 0; j < 8; j++){ 
			crc = (crc>>1); 
			if((crc^b) & 1) 
				crc ^= POLY; 
1997/0418    
			crc = (crc>>1) ^ (((crc^b) & 1) ? POLY : 0); 
1997/0415    
			b >>= 1; 
		} 
	} 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)