2 parents da35f83 + 3e4af28 commit 9a4c677Copy full SHA for 9a4c677
1 file changed
xxhash.h
@@ -6035,7 +6035,7 @@ XXH3_accumulate_512_scalar(void* XXH_RESTRICT acc,
6035
{
6036
size_t i;
6037
/* ARM GCC refuses to unroll this loop, resulting in a 24% slowdown on ARMv6. */
6038
-#if defined(__GNUC__) && !defined(__clang__) \
+#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ >= 8 \
6039
&& (defined(__arm__) || defined(__thumb2__)) \
6040
&& defined(__ARM_FEATURE_UNALIGNED) /* no unaligned access just wastes bytes */ \
6041
&& XXH_SIZE_OPT <= 0
0 commit comments