*: use SWAP_BE64 instead of open-coding it

Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
This commit is contained in:
Denys Vlasenko
2010-10-18 11:39:47 +02:00
parent 06f719fd79
commit b102e12253
5 changed files with 11 additions and 13 deletions

View File

@@ -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)