darkjessy94

bitwise_specchio

Sep 1st, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. unsigned char InvertiOrdine (unsigned char *n)
  2. {
  3. unsigned char out=0;
  4. int j, i;
  5. for (j=7, i=0; i<8; i++, j--)
  6. out |= ((*n>>i)&1)<<j;
  7. return out;
  8. }
Add Comment
Please, Sign In to add comment