diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2009-03-03 06:51:34 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2009-03-03 06:51:34 +0000 |
commit | 80416186794d128b7d0e88af1d469352404806d0 (patch) | |
tree | 547913f14b635d357c444d98865abe6d58cd309f /vmac.cpp | |
parent | f1b1bf3d0dea2032f9ce5f9b3d29b7ed5d22a32a (diff) | |
download | cryptopp-80416186794d128b7d0e88af1d469352404806d0.tar.gz |
work around GCC Bug 31690
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@436 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'vmac.cpp')
-rwxr-xr-x | vmac.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -25,8 +25,13 @@ static const word64 mpoly = W64LIT(0x1fffffff1fffffff); /* Poly key mask */ #undef const #endif #if VMAC_BOOL_WORD128 +#ifdef __powerpc__ +// workaround GCC Bug 31690: ICE with const __uint128_t and C++ front-end +#define m126 ((word128(m62)<<64)|m64) +#else static const word128 m126 = (word128(m62)<<64)|m64; /* 126-bit mask */ #endif +#endif void VMAC_Base::UncheckedSetKey(const byte *userKey, unsigned int keylength, const NameValuePairs ¶ms) { |