From ae8f462ad3cef68f049e05457e067b77ae2548c5 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sun, 13 Nov 2022 21:18:03 +0100 Subject: [PATCH] Avoid gcc extensions in aead_aes256gcm_aesni --- .../crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c b/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c index 5e3e8294..6cc8f483 100644 --- a/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c +++ b/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c @@ -57,8 +57,8 @@ typedef __m128i BlockVec; #define CLMULHI128(a, b) _mm_clmulepi64_si128((a), (b), 0x11) #define CLMULLOHI128(a, b) _mm_clmulepi64_si128((a), (b), 0x10) #define CLMULHILO128(a, b) _mm_clmulepi64_si128((a), (b), 0x01) -#define PREFETCH_READ(x) __builtin_prefetch((x), 0, 2) -#define PREFETCH_WRITE(x) __builtin_prefetch((x), 1, 2); +#define PREFETCH_READ(x) _mm_prefetch((x), 2) +#define PREFETCH_WRITE(x) _mm_prefetch((x), 2) #define ROUNDS 14