Add "cc" clobber due to GCC 3.3 compile failure
parent
be85db4de4
commit
8edc5cf2d5
2
cpu.cpp
2
cpu.cpp
|
|
@ -336,7 +336,7 @@ void DetectX86Features()
|
||||||
(
|
(
|
||||||
// "xgetbv" : "=a"(a), "=d"(d) : "c"(0) :
|
// "xgetbv" : "=a"(a), "=d"(d) : "c"(0) :
|
||||||
".byte 0x0f, 0x01, 0xd0" "\n\t"
|
".byte 0x0f, 0x01, 0xd0" "\n\t"
|
||||||
: "=a"(a), "=d"(d) : "c"(0) :
|
: "=a"(a), "=d"(d) : "c"(0) : "cc"
|
||||||
);
|
);
|
||||||
word64 xcr0 = a | static_cast<word64>(d) << 32;
|
word64 xcr0 = a | static_cast<word64>(d) << 32;
|
||||||
g_hasAVX = (xcr0 & YMM_FLAG) == YMM_FLAG;
|
g_hasAVX = (xcr0 & YMM_FLAG) == YMM_FLAG;
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#if (CRYPTOPP_AESNI_AVAILABLE)
|
#if (CRYPTOPP_AESNI_AVAILABLE)
|
||||||
# include "adv_simd.h"
|
# include "adv_simd.h"
|
||||||
|
# include <emmintrin.h>
|
||||||
# include <tmmintrin.h>
|
# include <tmmintrin.h>
|
||||||
# include <wmmintrin.h>
|
# include <wmmintrin.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue