From 01c426f1e7bd83e6a6f86d77f08103d1dca1f2af Mon Sep 17 00:00:00 2001 From: James Zern Date: Tue, 19 Sep 2017 20:15:23 -0700 Subject: [PATCH] define WEBP_USE_INTRINSICS w/gcc-4.9+ 32-bit builds are neutral to slightly faster using ndk r15c on a N5/S6/CM1 BUG=webp:339 Change-Id: I94b9442e0ceaf2f5edb2b4026bc8b99cd77c918b --- src/dsp/neon.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/dsp/neon.h b/src/dsp/neon.h index 3b548a68..1c181c81 100644 --- a/src/dsp/neon.h +++ b/src/dsp/neon.h @@ -17,8 +17,9 @@ #include "./dsp.h" // Right now, some intrinsics functions seem slower, so we disable them -// everywhere except aarch64 where the inline assembly is incompatible. -#if defined(__aarch64__) +// everywhere except newer gcc or aarch64 where the inline assembly is +// incompatible. +#if LOCAL_GCC_PREREQ(4,9) || defined(__aarch64__) #define WEBP_USE_INTRINSICS // use intrinsics when possible #endif