From ee03254a3e3fda86202070f2f5db918d928fbdca Mon Sep 17 00:00:00 2001 From: Brett Nash Date: Mon, 6 Dec 2010 02:20:31 +0000 Subject: [PATCH] Be more aggresive turning on neon, and don't include arm_neon.h The arm_neon header is for the Neon intrinsics. Since we use inline asm, we don't need any of that stuff. Also we set neon to be on if your compiler accepts it (and it's a arm). So more people may get neon builds. SVN revision: 55312 --- legacy/evas/configure.ac | 4 ++-- legacy/evas/src/lib/include/evas_common.h | 6 ------ 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/legacy/evas/configure.ac b/legacy/evas/configure.ac index 00c5527e31..2d5d03668b 100644 --- a/legacy/evas/configure.ac +++ b/legacy/evas/configure.ac @@ -1060,7 +1060,7 @@ fi ## NEON build_cpu_neon="no" case $host_cpu in - armv7*) + arm*) build_cpu_neon="yes" ;; esac @@ -1070,7 +1070,7 @@ AC_ARG_ENABLE(cpu-neon, checked at run time to see if the CPU supports it]), [ if test "x$enableval" = "xyes" ; then - AC_TRY_COMPILE([#include ], + AC_TRY_COMPILE([], [asm volatile (".fpu neon\nvqadd.u8 d0, d1, d0\n")], [ AC_MSG_RESULT(yes) diff --git a/legacy/evas/src/lib/include/evas_common.h b/legacy/evas/src/lib/include/evas_common.h index 6168a9cdbc..93d321ca0e 100644 --- a/legacy/evas/src/lib/include/evas_common.h +++ b/legacy/evas/src/lib/include/evas_common.h @@ -1159,12 +1159,6 @@ void evas_font_dir_cache_free(void); /*****************************************************************************/ -//#if defined(__ARM_ARCH__) && (__ARM_ARCH__ >= 70) -#ifdef BUILD_NEON -# include -#endif -//#endif - #ifdef __cplusplus } #endif