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
This commit is contained in:
James Zern 2017-09-19 20:15:23 -07:00
parent 8635973dc3
commit 01c426f1e7

View File

@ -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