mirror of
https://github.com/webmproject/libwebp.git
synced 2025-08-29 07:12:05 +02:00
Get AVX2 into WebP lossless
Change-Id: Ifad3102c9f899a46401985515cd98f3f7a21887f
This commit is contained in:
@@ -56,6 +56,11 @@
|
||||
(defined(_M_X64) || defined(_M_IX86))
|
||||
#define WEBP_MSC_SSE41 // Visual C++ SSE4.1 targets
|
||||
#endif
|
||||
|
||||
#if defined(_MSC_VER) && _MSC_VER >= 1700 && \
|
||||
(defined(_M_X64) || defined(_M_IX86))
|
||||
#define WEBP_MSC_AVX2 // Visual C++ AVX2 targets
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// WEBP_HAVE_* are used to indicate the presence of the instruction set in dsp
|
||||
@@ -80,6 +85,16 @@
|
||||
#define WEBP_HAVE_SSE41
|
||||
#endif
|
||||
|
||||
#if (defined(__AVX2__) || defined(WEBP_MSC_AVX2)) && \
|
||||
(!defined(HAVE_CONFIG_H) || defined(WEBP_HAVE_AVX2))
|
||||
#define WEBP_USE_AVX2
|
||||
#endif
|
||||
|
||||
#if defined(WEBP_USE_AVX2) && !defined(WEBP_HAVE_AVX2)
|
||||
#define WEBP_HAVE_AVX2
|
||||
#endif
|
||||
|
||||
#undef WEBP_MSC_AVX2
|
||||
#undef WEBP_MSC_SSE41
|
||||
#undef WEBP_MSC_SSE2
|
||||
|
||||
|
Reference in New Issue
Block a user