Skip to content

Commit

Permalink
Merge pull request #707 from prekageo/dev
Browse files Browse the repository at this point in the history
enable LZ4_FAST_DEC_LOOP build macro on aarch64 by default
  • Loading branch information
Cyan4973 committed May 14, 2019
2 parents 0291430 + 605d811 commit df24514
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/lz4.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit df24514

Please sign in to comment.