dsp.h: add a check for AVX2 / define WEBP_USE_AVX2

Change-Id: I90cc870f0bb4426af701779c367587dc2ae79c8b
This commit is contained in:
James Zern 2014-05-21 00:09:11 -07:00 committed by Gerrit Code Review
parent bdb151ee80
commit 541784c710

View File

@ -40,6 +40,10 @@ extern "C" {
#define WEBP_USE_SSE2 #define WEBP_USE_SSE2
#endif #endif
#if defined(__AVX2__)
#define WEBP_USE_AVX2
#endif
#if defined(__ANDROID__) && defined(__ARM_ARCH_7A__) #if defined(__ANDROID__) && defined(__ARM_ARCH_7A__)
#define WEBP_ANDROID_NEON // Android targets that might support NEON #define WEBP_ANDROID_NEON // Android targets that might support NEON
#endif #endif