summaryrefslogtreecommitdiff
path: root/gcm.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-07-29 08:51:39 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2010-07-29 08:51:39 +0000
commitce8e106147f7697285ef740dde39541f4f7e7187 (patch)
tree19eef65695ec9d0bb9a2152afe6bac0598dc4238 /gcm.cpp
parentdd6b53792ce52a8e10d85d4420f3946d87419d44 (diff)
downloadcryptopp-ce8e106147f7697285ef740dde39541f4f7e7187.tar.gz
fix compile on GCC 4.4 and greater
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@512 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'gcm.cpp')
-rw-r--r--gcm.cpp15
1 files changed, 3 insertions, 12 deletions
diff --git a/gcm.cpp b/gcm.cpp
index 84f6f91..237325d 100644
--- a/gcm.cpp
+++ b/gcm.cpp
@@ -10,15 +10,6 @@
#include "gcm.h"
#include "cpu.h"
-#if CRYPTOPP_BOOL_SSE2_INTRINSICS_AVAILABLE
-#include <emmintrin.h>
-#endif
-
-#if CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE
-#include <tmmintrin.h>
-#include <wmmintrin.h>
-#endif
-
NAMESPACE_BEGIN(CryptoPP)
word16 GCM_Base::s_reductionTable[256];
@@ -88,9 +79,9 @@ inline static void Xor16(byte *a, const byte *b, const byte *c)
#if CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE
static CRYPTOPP_ALIGN_DATA(16) const word64 s_clmulConstants64[] = {
- 0xe100000000000000, 0xc200000000000000,
- 0x08090a0b0c0d0e0f, 0x0001020304050607,
- 0x0001020304050607, 0x08090a0b0c0d0e0f};
+ W64LIT(0xe100000000000000), W64LIT(0xc200000000000000),
+ W64LIT(0x08090a0b0c0d0e0f), W64LIT(0x0001020304050607),
+ W64LIT(0x0001020304050607), W64LIT(0x08090a0b0c0d0e0f)};
static const __m128i *s_clmulConstants = (const __m128i *)s_clmulConstants64;
static const unsigned int s_clmulTableSizeInBlocks = 8;