Skip to content
Snippets Groups Projects
Unverified Commit c1f0f540 authored by Martin Storsjö's avatar Martin Storsjö Committed by Jean-Marc Valin
Browse files

dnn: vec_neon: avoid redefinition of vcvtnq_s32_f32

clang exposes this intrinsic even in 32-bit mode, if targeting >= armv8,
whereas gcc does not, see:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95399


Signed-off-by: default avatarJean-Marc Valin <jmvalin@jmvalin.ca>
parent ab4e8359
No related branches found
No related tags found
No related merge requests found
Pipeline #5226 passed
......@@ -34,7 +34,7 @@
#include <arm_neon.h>
#include "os_support.h"
#if defined(__arm__) && !defined(__aarch64__)
#if defined(__arm__) && !defined(__aarch64__) && (__ARM_ARCH < 8 || !defined(__clang__))
/* Emulate vcvtnq_s32_f32() for ARMv7 Neon. */
static OPUS_INLINE int32x4_t vcvtnq_s32_f32(float32x4_t x) {
return vrshrq_n_s32(vcvtq_n_s32_f32(x, 8), 8);
......
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