Skip to content
Snippets Groups Projects
Commit 87973603 authored by Jonathan Lennox's avatar Jonathan Lennox Committed by Timothy B. Terriberry
Browse files

Add configure check for Aarch64-specific Neon intrinsics.

parent 87c670db
Branches opus-ng-neonwarningfix
No related tags found
No related merge requests found
...@@ -504,6 +504,26 @@ AS_IF([test x"$enable_intrinsics" = x"yes"],[ ...@@ -504,6 +504,26 @@ AS_IF([test x"$enable_intrinsics" = x"yes"],[
[rtcd_support="$rtcd_support (NE10)"]) [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""], AS_IF([test x"$intrinsics_support" = x""],
[intrinsics_support=no], [intrinsics_support=no],
[intrinsics_support="ARM$intrinsics_support"]) [intrinsics_support="ARM$intrinsics_support"])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment