Commit 35443575 authored by John Esmet's avatar John Esmet Committed by Yoni Fogel

refs #5629 add 64 bit host to net ordering


git-svn-id: file:///svn/toku/tokudb@50317 c7de825b-a66e-492c-adef-691d508d4ae1
parent 9994907c
......@@ -22,5 +22,16 @@ static inline uint32_t toku_ntohl(uint32_t i) {
return ntohl(i);
}
static inline uint64_t toku_htonl64(uint64_t i) {
uint64_t a = ((uint64_t) htonl(i & 0xFFFFFFFF)) << 32;
uint64_t b = htonl(i >> 32);
return a | b;
}
static inline uint64_t toku_ntohl64(uint64_t i) {
uint64_t a = ((uint64_t) ntohl(i & 0xFFFFFFFF)) << 32;
uint64_t b = ntohl(i >> 32);
return a | b;
}
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment