mirror of
				https://github.com/webmproject/libwebp.git
				synced 2025-10-31 10:25:46 +01:00 
			
		
		
		
	dsp/cpu: add include for _xgetbv() w/MSVS
explicitly add immintrin.h instead of transitively picking it up via
windows.h presumably. makes the code easier to move around.
(cherry picked from commit b6c0428e8c)
Change-Id: If70d5143ac94fc331da763ce034358858e460e06
			
			
This commit is contained in:
		| @@ -56,6 +56,7 @@ static WEBP_INLINE uint64_t xgetbv(void) { | |||||||
|   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(_MSC_FULL_VER) && _MSC_FULL_VER >= 160040219  // >= VS2010 SP1 | ||||||
|  | #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) | ||||||
| static WEBP_INLINE uint64_t xgetbv(void) { | static WEBP_INLINE uint64_t xgetbv(void) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user