summaryrefslogtreecommitdiff
path: root/gcm-simd.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-08-18 04:44:53 -0400
committerGitHub <noreply@github.com>2018-08-18 04:44:53 -0400
commit4282f94712ee7b86c36fc656f377d2ce78532f0c (patch)
tree6057c2539f6c7b3fd9daa6a83d1a6de5e8018392 /gcm-simd.cpp
parent06cf2ede9e043b4c25eb3521cf67fcebb41b7629 (diff)
downloadcryptopp-git-4282f94712ee7b86c36fc656f377d2ce78532f0c.tar.gz
Disable X32 inline assembly (GH #686, PR #704)
Also use CRYPTOPP_DISABLE_XXX_ASM consistently. The pattern is needed for Clang which still can't compile Intel assembly language. Also see http://llvm.org/bugs/show_bug.cgi?id=24232.
Diffstat (limited to 'gcm-simd.cpp')
-rw-r--r--gcm-simd.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/gcm-simd.cpp b/gcm-simd.cpp
index 0793c103..f2e428f7 100644
--- a/gcm-simd.cpp
+++ b/gcm-simd.cpp
@@ -12,10 +12,7 @@
#include "config.h"
#include "misc.h"
-// Clang 3.3 integrated assembler crash on Linux. Other versions
-// produce incorrect results. Clang has never handled Intel ASM
-// very well. I wish LLVM would fix it.
-#if defined(CRYPTOPP_DISABLE_INTEL_ASM)
+#if defined(CRYPTOPP_DISABLE_GCM_ASM)
# undef CRYPTOPP_X86_ASM_AVAILABLE
# undef CRYPTOPP_X32_ASM_AVAILABLE
# undef CRYPTOPP_X64_ASM_AVAILABLE