Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.xiph.org/xiph/opus.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Lennox <jonathan@vidyo.com>2015-11-21 07:03:57 +0300
committerTimothy B. Terriberry <tterribe@xiph.org>2016-07-07 01:00:02 +0300
commit879736037b9742c9e38d0814fdc3ef836fd90b71 (patch)
tree96b2bff448bcf14e7e77e489f81505cc0ce901ae
parent87c670dbe11664cdb1399a820395a25287c6802a (diff)
Add configure check for Aarch64-specific Neon intrinsics.
Signed-off-by: Timothy B. Terriberry <tterribe@xiph.org>
-rw-r--r--configure.ac20
1 files changed, 20 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 7374b5ee..8071af60 100644
--- a/configure.ac
+++ b/configure.ac
@@ -504,6 +504,26 @@ AS_IF([test x"$enable_intrinsics" = x"yes"],[
[rtcd_support="$rtcd_support (NE10)"])
])
+ OPUS_CHECK_INTRINSICS(
+ [Aarch64 Neon],
+ [$ARM_NEON_INTR_CFLAGS],
+ [OPUS_ARM_MAY_HAVE_AARCH64_NEON_INTR],
+ [OPUS_ARM_PRESUME_AARCH64_NEON_INTR],
+ [[#include <arm_neon.h>
+ ]],
+ [[
+ static int32_t IN;
+ static int16_t OUT;
+ OUT = vqmovns_s32(IN);
+ ]]
+ )
+
+ AS_IF([test x"$OPUS_ARM_PRESUME_AARCH64_NEON_INTR" = x"1"],
+ [
+ AC_DEFINE([OPUS_ARM_PRESUME_AARCH64_NEON_INTR], 1, [Define if binary requires Aarch64 Neon Intrinsics])
+ intrinsics_support="$intrinsics_support (NEON [Aarch64])"
+ ])
+
AS_IF([test x"$intrinsics_support" = x""],
[intrinsics_support=no],
[intrinsics_support="ARM$intrinsics_support"])