*: use SWAP_BE64 instead of open-coding it
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#if BB_LITTLE_ENDIAN
|
||||
static inline uint64_t hton64(uint64_t v)
|
||||
{
|
||||
return (((uint64_t)htonl(v)) << 32) | htonl(v >> 32);
|
||||
return SWAP_BE64(v);
|
||||
}
|
||||
#else
|
||||
#define hton64(v) (v)
|
||||
|
@@ -14,7 +14,7 @@
|
||||
#if BB_LITTLE_ENDIAN
|
||||
static inline uint64_t hton64(uint64_t v)
|
||||
{
|
||||
return (((uint64_t)htonl(v)) << 32) | htonl(v >> 32);
|
||||
return SWAP_BE64(v);
|
||||
}
|
||||
#else
|
||||
#define hton64(v) (v)
|
||||
|
Reference in New Issue
Block a user