Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bdfea1e7 authored by Jim Huang's avatar Jim Huang Committed by Iouri Lebedev
Browse files

libpixelflinger: Build NEON optimized routine per target configuration

The variable TARGET_ARCH_VERSION variable has been renamed to
TARGET_ARCH_VARIANT, and armv7-a-neon is the exact target enables
ARM NEON instructions.

Change-Id: I999e3b0b8f3a03ff31346f83eb66ac52edc8d551
See: https://android-review.googlesource.com/#/c/22208/
parent cb6fc0ec
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -29,9 +29,9 @@ PIXELFLINGER_SRC_FILES:= \
	buffer.cpp

ifeq ($(TARGET_ARCH),arm)
ifeq ($(TARGET_ARCH_VERSION),armv7-a)
ifeq ($(TARGET_ARCH_VARIANT),armv7-a-neon)
PIXELFLINGER_SRC_FILES += t32cb16blend.S
PIXELFLINGER_SRC_FILES += col32cb16blend_neon.S
PIXELFLINGER_SRC_FILES += col32cb16blend.S
else
PIXELFLINGER_SRC_FILES += t32cb16blend.S
PIXELFLINGER_SRC_FILES += col32cb16blend.S
+1 −0
Original line number Diff line number Diff line
@@ -51,6 +51,7 @@

#if defined(__arm__)
#   define ANDROID_ARM_CODEGEN  1
#   include <machine/cpu-features.h>
#else
#   define ANDROID_ARM_CODEGEN  0
#endif