View difference between Paste ID: P9vkWJwX and 0pXjzMHG
SHOW: | | - or go back to the newest paste.
1
inline readBit(char input, int position){
2
static char BITLUT[]={1,2,4,8,16,32,64,128};
3-
return BITLUT[position]&input;
3+
if(BITLUT[position]&input){
4
	return 1;
5
}else{
6
	return 0;
7
}
8
}