Re: [PATCH RFC 1/9] lib/lz4: import upstream LZ4 sources verbatim
From: Sergey Senozhatsky
Date: Mon Sep 28 2026 - 00:12:49 EST
On (26/09/25 13:27), Michal Wilczynski wrote:
[..]
> +#ifndef LZ4_FAST_DEC_LOOP
> +# if defined __i386__ || defined _M_IX86 || defined __x86_64__ || defined _M_X64
> +# define LZ4_FAST_DEC_LOOP 1
> +# elif defined(__aarch64__) && defined(__APPLE__)
> +# define LZ4_FAST_DEC_LOOP 1
> +# elif defined(__aarch64__) && !defined(__clang__)
> + /* On non-Apple aarch64, we disable this optimization for clang because
> + * on certain mobile chipsets, performance is reduced with clang. 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
> +#endif
I just checked https://github.com/lz4/lz4/pull/707 and it seems that
LZ4_FAST_DEC_LOOP is enabled on aarch64 now, but we still disable it.
Am I missing something?