From d82b2a3eb4f4d2385ec508515a95ff9f339ab74f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20PETIT?= Date: Thu, 6 Mar 2014 15:43:58 +0000 Subject: Fix the build for NEON in libpixelflinger MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ARCH_ARM_HAVE_NEON is only ever defined to true, so test for that. For the NEON function to be used, the file has to include machine/cpu-features.h so that __ARM_HAVE_NEON is defined. Change-Id: I0db196b39c493092415859e009531fcff6fc1e8b Signed-off-by: Kévin PETIT --- libpixelflinger/Android.mk | 2 +- libpixelflinger/scanline.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libpixelflinger/Android.mk b/libpixelflinger/Android.mk index c24384c..484cf50 100644 --- a/libpixelflinger/Android.mk +++ b/libpixelflinger/Android.mk @@ -34,7 +34,7 @@ PIXELFLINGER_SRC_FILES_arm := \ col32cb16blend.S \ t32cb16blend.S \ -ifeq ($(ARCH_ARM_HAVE_NEON),armv7-a) +ifeq ($(ARCH_ARM_HAVE_NEON),true) PIXELFLINGER_SRC_FILES_arm += col32cb16blend_neon.S endif diff --git a/libpixelflinger/scanline.cpp b/libpixelflinger/scanline.cpp index cb2b811..f84a28a 100644 --- a/libpixelflinger/scanline.cpp +++ b/libpixelflinger/scanline.cpp @@ -26,6 +26,10 @@ #include #include +#ifdef __arm__ +#include +#endif + #include "buffer.h" #include "scanline.h" -- cgit v1.1