From ce8e106147f7697285ef740dde39541f4f7e7187 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 29 Jul 2010 08:51:39 +0000 Subject: 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 --- gcm.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'gcm.cpp') 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 -#endif - -#if CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE -#include -#include -#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; -- cgit v1.2.1