mirror of
https://github.com/shadps4-emu/ext-cryptopp.git
synced 2024-11-26 19:30:21 +00:00
Avoid call to CPU_ProbeSSE2 in DetectX86Features (GH #1162)
The call was a workaround for Solaris. Limit it to Solaris.
This commit is contained in:
parent
a23f78d116
commit
0d9cd947a0
2
cpu.cpp
2
cpu.cpp
@ -599,10 +599,12 @@ void DetectX86Features()
|
||||
(cpuid1[ECX_REG] & OSXSAVE_FLAG) != 0;
|
||||
#endif
|
||||
|
||||
#if defined(__sun)
|
||||
// Solaris 11 i86pc does not signal SSE support using
|
||||
// OSXSAVE. We need to probe for SSE support.
|
||||
if (g_hasSSE2 == false)
|
||||
g_hasSSE2 = CPU_ProbeSSE2();
|
||||
#endif
|
||||
|
||||
if (g_hasSSE2 == false)
|
||||
goto done;
|
||||
|
Loading…
Reference in New Issue
Block a user