Skip to content

Commit

Permalink
Turn on neon instrinsics for arm64 by turning off runtime detection.
Browse files Browse the repository at this point in the history
+ Also turn off runtime detection for arm32 when we know
the build supports neon.

Change-Id: Ie6b99906888c1cdb8eed4b909146d2a4cfb0b3f6
  • Loading branch information
riandrews committed Aug 20, 2014
1 parent 235fa00 commit 7f21a7f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ common_SRC_FILES := \
pngwutil.c \

ifeq ($(ARCH_ARM_HAVE_NEON),true)
my_cflags_arm := -DPNG_ARM_NEON_OPT=2 -DPNG_ARM_NEON_CHECK_SUPPORTED
my_cflags_arm := -DPNG_ARM_NEON_OPT=2
endif

my_cflags_arm64 := -DPNG_ARM_NEON_OPT=2 -DPNG_ARM_NEON_CHECK_SUPPORTED
my_cflags_arm64 := -DPNG_ARM_NEON_OPT=2

# BUG: http://llvm.org/PR19472 - SLP vectorization (on ARM at least) crashes
# when we can't lower a vectorized bswap.
Expand Down

0 comments on commit 7f21a7f

Please sign in to comment.