mirror of
https://github.com/webmproject/libwebp.git
synced 2024-12-27 06:08:21 +01:00
dsp/cpu: (msvs) avoid immintrin.h on _M_ARM
_xgetgv() isn't relevant there anyway broken since:279e661
Merge "dsp/cpu: add include for _xgetbv() w/MSVS" (cherry picked from commit4fbe9cf202
) Change-Id: Iaa7bc0c5be9c06bfffab39e194c64c09bf5b5a27
This commit is contained in:
parent
f814f429ca
commit
39aa055529
@ -55,7 +55,8 @@ static WEBP_INLINE uint64_t xgetbv(void) {
|
|||||||
: "=a"(eax), "=d"(edx) : "c" (ecx));
|
: "=a"(eax), "=d"(edx) : "c" (ecx));
|
||||||
return ((uint64_t)edx << 32) | eax;
|
return ((uint64_t)edx << 32) | eax;
|
||||||
}
|
}
|
||||||
#elif defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 160040219 // >= VS2010 SP1
|
#elif (defined(_M_X64) || defined(_M_IX86)) && \
|
||||||
|
defined(_MSC_FULL_VER) && _MSC_FULL_VER >= 160040219 // >= VS2010 SP1
|
||||||
#include <immintrin.h>
|
#include <immintrin.h>
|
||||||
#define xgetbv() _xgetbv(0)
|
#define xgetbv() _xgetbv(0)
|
||||||
#elif defined(_MSC_VER) && defined(_M_IX86)
|
#elif defined(_MSC_VER) && defined(_M_IX86)
|
||||||
|
Loading…
Reference in New Issue
Block a user