From 94ee86bbf6d35476281a7012136e7c74c1693231 Mon Sep 17 00:00:00 2001 From: weidai Date: Mon, 2 Mar 2009 05:23:21 +0000 Subject: fix compile on non-x86 git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@434 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- rijndael.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'rijndael.cpp') diff --git a/rijndael.cpp b/rijndael.cpp index 05c403a..4f40285 100644 --- a/rijndael.cpp +++ b/rijndael.cpp @@ -675,6 +675,8 @@ void Rijndael_Enc_AdvancedProcessBlocks(void *locals, const word32 *k); } #endif +#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE || defined(CRYPTOPP_X64_MASM_AVAILABLE) + static inline bool AliasedWithTable(const byte *begin, const byte *end) { size_t s0 = size_t(begin)%4096, s1 = size_t(end)%4096; @@ -746,9 +748,11 @@ size_t Rijndael::Enc::AdvancedProcessBlocks(const byte *inBlocks, const byte *xo return BlockTransformation::AdvancedProcessBlocks(inBlocks, xorBlocks, outBlocks, length, flags); } +#endif + void Rijndael::Enc::ProcessAndXorBlock(const byte *inBlock, const byte *xorBlock, byte *outBlock) const { -#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE +#if CRYPTOPP_BOOL_SSE2_ASM_AVAILABLE || defined(CRYPTOPP_X64_MASM_AVAILABLE) if (HasSSE2()) { Rijndael::Enc::AdvancedProcessBlocks(inBlock, xorBlock, outBlock, 16, 0); -- cgit v1.2.1