Skip to content
Snippets Groups Projects
Commit ac9c8322 authored by Raphael S. Carvalho's avatar Raphael S. Carvalho Committed by Avi Kivity
Browse files

zfs: lz4: Recognize __aarch64__ when detecting CPU word size.


The lz4 code checks from a predetermined list of definitions
if the CPU word size is 64. Otherwise, it's 32.
Therefore, __aarch64__ definition must be added into the afore-
mentioned list.

Signed-off-by: default avatarRaphael S. Carvalho <raphaelsc@cloudius-systems.com>
Signed-off-by: default avatarAvi Kivity <avi@cloudius-systems.com>
parent 6a29063c
No related branches found
No related tags found
No related merge requests found
...@@ -195,7 +195,7 @@ lz4_decompress(void *s_start, void *d_start, size_t s_len, size_t d_len, int n) ...@@ -195,7 +195,7 @@ lz4_decompress(void *s_start, void *d_start, size_t s_len, size_t d_len, int n)
/* 32 or 64 bits ? */ /* 32 or 64 bits ? */
#if (defined(__x86_64__) || defined(__x86_64) || defined(__amd64__) || \ #if (defined(__x86_64__) || defined(__x86_64) || defined(__amd64__) || \
defined(__amd64) || defined(__ppc64__) || defined(_WIN64) || \ defined(__amd64) || defined(__ppc64__) || defined(_WIN64) || \
defined(__LP64__) || defined(_LP64)) defined(__LP64__) || defined(_LP64) || defined(__aarch64__))
#define LZ4_ARCH64 1 #define LZ4_ARCH64 1
/* /*
* Illumos: On amd64 we have 20k of stack and 24k on sun4u and sun4v, so we * Illumos: On amd64 we have 20k of stack and 24k on sun4u and sun4v, so we
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment