b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 1 | --- 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 |