aboutsummaryrefslogtreecommitdiff
path: root/module/zfs/lz4.c
diff options
context:
space:
mode:
authorNed Bass <bass6@llnl.gov>2014-04-18 20:29:43 +0000
committerBrian Behlendorf <behlendorf1@llnl.gov>2014-04-20 23:55:42 +0000
commitde39ec11b885f97e6256324ee89eaf75af9852f6 (patch)
tree203aa72b3b513c5bceb89ceca5e5f5a77ce262b8 /module/zfs/lz4.c
parent4fd762f8ad59f5840c790357a0e50f15cc9ccc08 (diff)
downloadsrc-de39ec11b885f97e6256324ee89eaf75af9852f6.tar.gz
src-de39ec11b885f97e6256324ee89eaf75af9852f6.zip
Diffstat (limited to 'module/zfs/lz4.c')
-rw-r--r--module/zfs/lz4.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/module/zfs/lz4.c b/module/zfs/lz4.c
index df9637336d39..a9aa028196f8 100644
--- a/module/zfs/lz4.c
+++ b/module/zfs/lz4.c
@@ -195,9 +195,7 @@ lz4_decompress_zfs(void *s_start, void *d_start, size_t s_len,
*/
/* 32 or 64 bits ? */
-#if (defined(__x86_64__) || defined(__x86_64) || defined(__amd64__) || \
- defined(__amd64) || defined(__ppc64__) || defined(_WIN64) || \
- defined(__LP64__) || defined(_LP64))
+#if defined(_LP64)
#define LZ4_ARCH64 1
#else
#define LZ4_ARCH64 0
@@ -207,17 +205,14 @@ lz4_decompress_zfs(void *s_start, void *d_start, size_t s_len,
* Little Endian or Big Endian?
* Note: overwrite the below #define if you know your architecture endianess.
*/
-#if (defined(__BIG_ENDIAN__) || defined(__BIG_ENDIAN) || \
- defined(_BIG_ENDIAN) || defined(_ARCH_PPC) || defined(__PPC__) || \
- defined(__PPC) || defined(PPC) || defined(__powerpc__) || \
- defined(__powerpc) || defined(powerpc) || \
- ((defined(__BYTE_ORDER__)&&(__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__))))
+#if defined(_BIG_ENDIAN)
#define LZ4_BIG_ENDIAN 1
#else
/*
* Little Endian assumed. PDP Endian and other very rare endian format
* are unsupported.
*/
+#undef LZ4_BIG_ENDIAN
#endif
/*