summaryrefslogtreecommitdiff
path: root/cipher/cipher-gcm-intel-pclmul.c
diff options
context:
space:
mode:
Diffstat (limited to 'cipher/cipher-gcm-intel-pclmul.c')
-rw-r--r--cipher/cipher-gcm-intel-pclmul.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/cipher/cipher-gcm-intel-pclmul.c b/cipher/cipher-gcm-intel-pclmul.c
index 03144583..79648ce9 100644
--- a/cipher/cipher-gcm-intel-pclmul.c
+++ b/cipher/cipher-gcm-intel-pclmul.c
@@ -32,6 +32,13 @@
#ifdef GCM_USE_INTEL_PCLMUL
+
+#if _GCRY_GCC_VERSION >= 40400 /* 4.4 */
+/* Prevent compiler from issuing SSE instructions between asm blocks. */
+# pragma GCC target("no-sse")
+#endif
+
+
/*
Intel PCLMUL ghash based on white paper:
"IntelĀ® Carry-Less Multiplication Instruction and its Usage for Computing the