Advertisement
Guest User

Untitled

a guest
Dec 19th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. ```cpp
  2. inline int64 CmaskAll() { return -1; }
  3. inline int64 CmaskOne(int ClientID) { return 1<<ClientID; }
  4. inline int64 CmaskAllExceptOne(int ClientID) { return CmaskAll()^CmaskOne(ClientID); }
  5. inline bool CmaskIsSet(int64 Mask, int ClientID) { return (Mask&CmaskOne(ClientID)) != 0; }
  6. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement