blob: 656e6058142998c47186d74e670f85343513f62c [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/library/common.h
2+++ b/library/common.h
3@@ -199,7 +199,7 @@ static inline void mbedtls_xor(unsigned
4 uint8x16_t x = veorq_u8(v1, v2);
5 vst1q_u8(r + i, x);
6 }
7-#if defined(__IAR_SYSTEMS_ICC__)
8+#if defined(__IAR_SYSTEMS_ICC__) || (defined(MBEDTLS_COMPILER_IS_GCC) && MBEDTLS_GCC_VERSION >= 140100)
9 /* This if statement helps some compilers (e.g., IAR) optimise out the byte-by-byte tail case
10 * where n is a constant multiple of 16.
11 * For other compilers (e.g. recent gcc and clang) it makes no difference if n is a compile-time