Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define htonll(x) \
- ((((x) & 0xff00000000000000LL) >> 56) | \
- (((x) & 0x00ff000000000000LL) >> 40) | \
- (((x) & 0x0000ff0000000000LL) >> 24) | \
- (((x) & 0x000000ff00000000LL) >> 8) | \
- (((x) & 0x00000000ff000000LL) << 8) | \
- (((x) & 0x0000000000ff0000LL) << 24) | \
- (((x) & 0x000000000000ff00LL) << 40) | \
- (((x) & 0x00000000000000ffLL) << 56))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement