MSVC can only assembly x86 instructions

This commit is contained in:
Frank Denis 2017-02-27 16:31:46 +01:00
parent 3cd883d33e
commit 0e4a05d558

View File

@ -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