Advertisement
BiceMaster

herrligheten

Aug 19th, 2018
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.48 KB | None | 0 0
  1.     out = 0;
  2.     out |= (reqBytes>3 ? (row >> 21 & 0x7f)                   : 0);
  3.     out |= (reqBytes>2 ? (row >> 14 & 0x7f) << 8*(reqBytes-3) : 0);
  4.     out |= (reqBytes>1 ? (row >>  7 & 0x7f) << 8*(reqBytes-2) : 0);
  5.     out |= (             (row & 0x7f)       << 8*(reqBytes-1)    );
  6.     out |= (reqBytes>3 ? 0x80               << 16             : 0);
  7.     out |= (reqBytes>2 ? 0x80               << 8              : 0);
  8.     out |= (reqBytes>1 ? 0x80                                 : 0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement