freebsd-ports/audio/opus/files/patch-dnn_vec__neon.h
Christian Weisgerber a1c197fb10 audio/opus: fix build on arm
* fix the build on 32-bit arm[1]
* GitHub does not have a release tarball for this release[2]

PR:		277537
Obtained from:	fuz [1]
Reported by:	diizzy [2]
2024-03-12 16:54:39 +01:00

11 lines
362 B
C

--- dnn/vec_neon.h.orig 2024-03-12 15:41:06 UTC
+++ dnn/vec_neon.h
@@ -34,7 +34,7 @@
#include <arm_neon.h>
#include "os_support.h"
-#if defined(__arm__) && !defined(__aarch64__)
+#if __ARM_ARCH < 8
/* 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);