mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-28 22:21:15 -07:00
MSVC can only assembly x86 instructions
This commit is contained in:
parent
3cd883d33e
commit
0e4a05d558
@ -149,7 +149,7 @@ _sodium_runtime_intel_cpu_features(CPUFeatures * const cpu_features)
|
||||
if ((cpu_info[2] & (CPUID_ECX_AVX | CPUID_ECX_XSAVE | CPUID_ECX_OSXSAVE)) ==
|
||||
(CPUID_ECX_AVX | CPUID_ECX_XSAVE | CPUID_ECX_OSXSAVE)) {
|
||||
uint32_t xcr0 = 0U;
|
||||
# ifdef _MSC_VER
|
||||
# if defined(_MSC_VER) && defined(_M_IX86)
|
||||
__asm {
|
||||
xor ecx, ecx
|
||||
_asm _emit 0x0f _asm _emit 0x01 _asm _emit 0xd0
|
||||
|
Loading…
Reference in New Issue
Block a user