7233156.patch 591 B

123456789101112131415161718192021
  1. diff --git a/3rdparty/libwebp/src/dsp/cpu.h b/3rdparty/libwebp/src/dsp/cpu.h
  2. index 7f87d7daaa..f6e3666158 100644
  3. --- a/3rdparty/libwebp/src/dsp/cpu.h
  4. +++ b/3rdparty/libwebp/src/dsp/cpu.h
  5. @@ -94,6 +94,15 @@
  6. #define WEBP_HAVE_AVX2
  7. #endif
  8. +#if defined(WEBP_MSC_AVX2) && _MSC_VER <= 1900
  9. +#include <immintrin.h>
  10. +static WEBP_INLINE int _mm256_extract_epi32(__m256i a, const int i) {
  11. + return a.m256i_i32[i & 7];
  12. +}
  13. +static WEBP_INLINE int _mm256_cvtsi256_si32(__m256i a) {
  14. + return _mm256_extract_epi32(a, 0);
  15. +}
  16. +#endif
  17. +
  18. #undef WEBP_MSC_AVX2
  19. #undef WEBP_MSC_SSE41
  20. #undef WEBP_MSC_SSE2