From ce3c60521b22a5df6bced18ff2ea1a4771b7469a Mon Sep 17 00:00:00 2001 From: Hanseul Jun Date: Fri, 5 Feb 2021 12:20:07 -0800 Subject: [PATCH] Avoid including immintrin.h when GF256_TARGET_MOBILE is set. --- gf256.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gf256.h b/gf256.h index c618c0d..1bf0692 100644 --- a/gf256.h +++ b/gf256.h @@ -57,7 +57,7 @@ #define GF256_TARGET_MOBILE #endif // ANDROID -#if defined(__AVX2__) || (defined (_MSC_VER) && _MSC_VER >= 1900) +#if defined(__AVX2__) || (defined (_MSC_VER) && _MSC_VER >= 1900) && !defined(GF256_TARGET_MOBILE) #define GF256_TRY_AVX2 /* 256-bit */ #include #define GF256_ALIGN_BYTES 32