Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2015
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. inline readBit(char input, int position){
  2. static char BITLUT[]={1,2,4,8,16,32,64,128};
  3. if(BITLUT[position]&input){
  4.     return 1;
  5. }else{
  6.     return 0;
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement