diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-08-13 23:46:55 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2007-08-13 23:46:55 +0000 |
commit | a45e31669dfb97a628d6c0c21b7e9daaaba43ec7 (patch) | |
tree | 76911db7de14e06c0d34e5d140926f1e51586c62 /vmac.cpp | |
parent | 8e083d773f6e98f9959abf054471c47471ccdd9f (diff) | |
download | cryptopp-a45e31669dfb97a628d6c0c21b7e9daaaba43ec7.tar.gz |
patch from Jody Hagins to fix gcc 3.2 compile
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@381 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'vmac.cpp')
-rwxr-xr-x | vmac.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -513,14 +513,14 @@ void VMAC_Base::VHASH_Update_Template(const word64 *data, size_t blocksRemaining } #define a0 (((word32 *)(polyS+i*4))[2+NativeByteOrder::ToEnum()]) - #define a1 (((word32 *)(polyS+i*4))[3-NativeByteOrder::ToEnum()]) + #define a1 (*(((word32 *)(polyS+i*4))+3-NativeByteOrder::ToEnum())) // workaround for GCC 3.2 #define a2 (((word32 *)(polyS+i*4))[0+NativeByteOrder::ToEnum()]) - #define a3 (((word32 *)(polyS+i*4))[1-NativeByteOrder::ToEnum()]) + #define a3 (*(((word32 *)(polyS+i*4))+1-NativeByteOrder::ToEnum())) #define aHi ((polyS+i*4)[0]) #define k0 (((word32 *)(polyS+i*4+2))[2+NativeByteOrder::ToEnum()]) - #define k1 (((word32 *)(polyS+i*4+2))[3-NativeByteOrder::ToEnum()]) + #define k1 (*(((word32 *)(polyS+i*4+2))+3-NativeByteOrder::ToEnum())) #define k2 (((word32 *)(polyS+i*4+2))[0+NativeByteOrder::ToEnum()]) - #define k3 (((word32 *)(polyS+i*4+2))[1-NativeByteOrder::ToEnum()]) + #define k3 (*(((word32 *)(polyS+i*4+2))+1-NativeByteOrder::ToEnum())) #define kHi ((polyS+i*4+2)[0]) if (isFirstBlock) |