Parking some code
Page last updated 19 Apr 2016, by
0
replies
.
unsigned int reverse(unsigned int prog) { unsigned char count; unsigned int result=0; for(count=0;count< 32;count++) { result = result << 1; result|= (prog & 1); prog=prog >> 1; } return(result); } unsigned char revb(unsigned char prog) { unsigned char count; unsigned char result=0; for(count=0;count< 8;count++) { result = result << 1; result|= (prog & 1); prog=prog >> 1; } return(result); }
Please log in to post comments.