diff options
author | Yann Collet <Cyan4973@users.noreply.github.com> | 2019-05-14 03:35:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-14 03:35:10 (GMT) |
commit | df2451479cc70e73e96466f0bc341bdac722bbe9 (patch) | |
tree | 5946083ae57635d58c06d479aa3ea4927dae0733 | |
parent | 02914300185515097cdbebcd95c379508b5d3053 (diff) | |
parent | 605d811e6cc94736dd609c644404dd24c013fd6f (diff) | |
download | lz4-df2451479cc70e73e96466f0bc341bdac722bbe9.zip lz4-df2451479cc70e73e96466f0bc341bdac722bbe9.tar.gz lz4-df2451479cc70e73e96466f0bc341bdac722bbe9.tar.bz2 |
Merge pull request #707 from prekageo/dev
enable LZ4_FAST_DEC_LOOP build macro on aarch64 by default
-rw-r--r-- | lib/lz4.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -317,6 +317,11 @@ static const int dec64table[8] = {0, 0, 0, -1, -4, 1, 2, 3}; #ifndef LZ4_FAST_DEC_LOOP # if defined(__i386__) || defined(__x86_64__) # define LZ4_FAST_DEC_LOOP 1 +# elif defined(__aarch64__) && !defined(__clang__) + /* On aarch64, we disable this optimization for clang because on certain + * mobile chipsets and clang, it reduces performance. For more information + * refer to https://github.com/lz4/lz4/pull/707. */ +# define LZ4_FAST_DEC_LOOP 1 # else # define LZ4_FAST_DEC_LOOP 0 # endif |