Fix SunStudio compile on Solaris
parent
916fe7db26
commit
692ed2a2bb
2
cpu.cpp
2
cpu.cpp
|
|
@ -317,7 +317,7 @@ void DetectX86Features()
|
||||||
CRYPTOPP_CONSTANT(AVX_FLAG = (3 << 27))
|
CRYPTOPP_CONSTANT(AVX_FLAG = (3 << 27))
|
||||||
if ((cpuid1[2] & AVX_FLAG) == AVX_FLAG)
|
if ((cpuid1[2] & AVX_FLAG) == AVX_FLAG)
|
||||||
{
|
{
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__) || defined(__SUNPRO_CC)
|
||||||
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71659 and
|
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71659 and
|
||||||
// http://www.agner.org/optimize/vectorclass/read.php?i=65
|
// http://www.agner.org/optimize/vectorclass/read.php?i=65
|
||||||
word32 a=0, d=0;
|
word32 a=0, d=0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue