mirror of
https://github.com/webmproject/libwebp.git
synced 2025-12-23 21:46:26 +01:00
Merge "Get code to compile with older VS with partial AVX2 support." into main
This commit is contained in:
@@ -94,6 +94,17 @@
|
||||
#define WEBP_HAVE_AVX2
|
||||
#endif
|
||||
|
||||
#if defined(WEBP_MSC_AVX2) && _MSC_VER <= 1900
|
||||
#include <immintrin.h>
|
||||
|
||||
static WEBP_INLINE int _mm256_extract_epi32(__m256i a, const int i) {
|
||||
return a.m256i_i32[i & 7];
|
||||
}
|
||||
static WEBP_INLINE int _mm256_cvtsi256_si32(__m256i a) {
|
||||
return _mm256_extract_epi32(a, 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
#undef WEBP_MSC_AVX2
|
||||
#undef WEBP_MSC_SSE41
|
||||
#undef WEBP_MSC_SSE2
|
||||
|
||||
Reference in New Issue
Block a user