diff options
Diffstat (limited to 'src/include/platform.h')
-rw-r--r-- | src/include/platform.h | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/include/platform.h b/src/include/platform.h index da70893a7..e641b38eb 100644 --- a/src/include/platform.h +++ b/src/include/platform.h | |||
@@ -199,25 +199,6 @@ | |||
199 | #undef HAVE_MREMAP | 199 | #undef HAVE_MREMAP |
200 | #endif | 200 | #endif |
201 | 201 | ||
202 | #if defined(__linux__) | ||
203 | #define BYTE_SWAP_16(x) __bswap_16 (x) | ||
204 | #define BYTE_SWAP_32(x) __bswap_32 (x) | ||
205 | #define BYTE_SWAP_64(x) __bswap_64 (x) | ||
206 | #else | ||
207 | #define BYTE_SWAP_16(x) ((((x) & 0x00ff) << 8) | (((x) & 0xff00) >> 8)) | ||
208 | |||
209 | #define BYTE_SWAP_32(x) \ | ||
210 | ((((x) & 0x000000ffU) << 24) | (((x) & 0x0000ff00U) << 8) \ | ||
211 | | (((x) & 0x00ff0000U) >> 8) | (((x) & 0xff000000U) >> 24)) | ||
212 | |||
213 | #define BYTE_SWAP_64(x) \ | ||
214 | ((((x) & 0x00000000000000ffUL) << 56) | (((x) & 0x000000000000ff00UL) << 40) \ | ||
215 | | (((x) & 0x0000000000ff0000UL) << 24) | (((x) & 0x00000000ff000000UL) << 8) \ | ||
216 | | (((x) & 0x000000ff00000000UL) >> 8) | (((x) & 0x0000ff0000000000UL) >> 24) \ | ||
217 | | (((x) & 0x00ff000000000000UL) >> 40) | (((x) & 0xff00000000000000UL) >> \ | ||
218 | 56)) | ||
219 | #endif | ||
220 | |||
221 | #if ! HAVE_ATOLL | 202 | #if ! HAVE_ATOLL |
222 | long long | 203 | long long |
223 | atoll (const char *nptr); | 204 | atoll (const char *nptr); |