From 6554b96b66e0e7b430bf02c8c4b9e2901fc04acb Mon Sep 17 00:00:00 2001 From: Kp Date: Thu, 14 Jul 2016 01:59:04 +0000 Subject: [PATCH] Remove unused SWAPINT64 --- common/include/byteutil.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/common/include/byteutil.h b/common/include/byteutil.h index 66b665f3c..3cc0d2b80 100644 --- a/common/include/byteutil.h +++ b/common/include/byteutil.h @@ -55,11 +55,6 @@ static inline int32_t SWAPINT(const int32_t &i) { return SWAPINT(static_cast(i)); } -#ifndef macintosh -#define SWAPINT64(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)) -#else -#define SWAPINT64(x) ((((x) & 0xff00000000000000LL)/(2^56)) | (((x) & 0x00ff000000000000LL)/(2^40)) | (((x) & 0x0000ff0000000000LL)/(2^24)) | (((x) & 0x000000ff00000000LL)/(2^8)) | (((x) & 0x00000000ff000000LL)*(2^8)) | (((x) & 0x0000000000ff0000LL)*(2^24)) | (((x) & 0x000000000000ff00LL)*(2^40)) | (((x) & 0x00000000000000ffLL)*(2^56))) -#endif #ifndef WORDS_BIGENDIAN /* Always resolve F(a), so ambiguous calls are flagged even on little