summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorYury Usishchev <y.usishchev@samsung.com>2015-04-15 17:21:33 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-05-07 09:53:08 +0200
commit71eec44ccc9ab43e728ba986fadce6c6cfd2ff7c (patch)
tree9ed9801c7a1534f69cff124c2071e53d8845d35a /configure.ac
parent88b30ef28c47106891d44f62798424c745ec1b8c (diff)
evas: enable NEON-optimized code for aarch64.
Summary: Add new define, BUILD_NEON_INTRINSICS to control whether NEON inline code or NEON intrinsics should be built. GCC NEON intrinsics can be built both for armv7 and armv8. However NEON inline code can be built only for armv7. @feature Reviewers: raster, stefan_schmidt, cedric Subscribers: cedric, stefan_schmidt Projects: #efl Differential Revision: https://phab.enlightenment.org/D2309 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac18
1 files changed, 18 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 9eed98c..63cc54d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -576,6 +576,21 @@ case $host_cpu in
576 CFLAGS="${CFLAGS_save}" 576 CFLAGS="${CFLAGS_save}"
577 fi 577 fi
578 ;; 578 ;;
579 aarch64*)
580 if test "x${want_neon}" = "xyes"; then
581 build_cpu_neon="yes"
582 AC_MSG_CHECKING([whether to use NEON instructions])
583 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <arm_neon.h>]], [[volatile uint32x4_t test = vdupq_n_u32(0x1);]])],[
584 AC_MSG_RESULT([yes])
585 AC_DEFINE([BUILD_NEON], [1], [Build NEON Code])
586 AC_DEFINE([BUILD_NEON_INTRINSICS], [1], [Build NEON Intrinsics])
587 build_cpu_neon="yes"
588 ],[
589 AC_MSG_RESULT([no])
590 build_cpu_neon="no"
591 ])
592 fi
593 ;;
579esac 594esac
580 595
581AC_SUBST([ALTIVEC_CFLAGS]) 596AC_SUBST([ALTIVEC_CFLAGS])
@@ -4741,6 +4756,9 @@ case $host_cpu in
4741 arm*) 4756 arm*)
4742 EFL_ADD_FEATURE([cpu], [neon], [${build_cpu_neon}]) 4757 EFL_ADD_FEATURE([cpu], [neon], [${build_cpu_neon}])
4743 ;; 4758 ;;
4759 aarch64*)
4760 EFL_ADD_FEATURE([cpu], [neon], [${build_cpu_neon}])
4761 ;;
4744esac 4762esac
4745 4763
4746if test "${have_linux}" = "yes"; then 4764if test "${have_linux}" = "yes"; then