mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2025-02-05 20:47:01 +00:00
Limit GCC workaround to 5.3 on PowerPC
GCC fixed the issue at GCC 5.3. Also see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=31690
This commit is contained in:
parent
9c28cf2227
commit
d4b3e1535a
9
vmac.cpp
9
vmac.cpp
@ -46,13 +46,14 @@ const word64 mpoly = W64LIT(0x1fffffff1fffffff); /* Poly key mask */
|
||||
#ifdef __BORLANDC__
|
||||
#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
|
||||
# if defined(__powerpc__) && defined (CRYPTOPP_GCC_VERSION) && (CRYPTOPP_GCC_VERSION < 50300)
|
||||
# define m126 ((word128(m62)<<64)|m64)
|
||||
# else
|
||||
const word128 m126 = (word128(m62)<<64)|m64; /* 126-bit mask */
|
||||
#endif
|
||||
# endif
|
||||
#endif
|
||||
|
||||
ANONYMOUS_NAMESPACE_END
|
||||
|
Loading…
x
Reference in New Issue
Block a user