From 946914b5d192c439962ffc0bcc44f93d98d796e5 Mon Sep 17 00:00:00 2001 From: Katherine Whitlock Date: Fri, 13 Dec 2024 03:41:59 -0500 Subject: [PATCH] Disable references to NEON FP16 intrinsics when NEON FP16 is not available (#222) --- Ne10/CMSIS_NE10_fft.neonintrinsic_f16.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Ne10/CMSIS_NE10_fft.neonintrinsic_f16.h b/Ne10/CMSIS_NE10_fft.neonintrinsic_f16.h index d67fe4e3..32873494 100755 --- a/Ne10/CMSIS_NE10_fft.neonintrinsic_f16.h +++ b/Ne10/CMSIS_NE10_fft.neonintrinsic_f16.h @@ -35,6 +35,8 @@ #include "CMSIS_NE10_fft.h" #include +#if defined(ARM_MATH_NEON_FLOAT16) + #define NE10_CPX_ADD_NEON_F16(Z,A,B) do { \ Z.val[0] = A.val[0] + B.val[0]; \ Z.val[1] = A.val[1] + B.val[1]; \ @@ -397,4 +399,5 @@ const static float16x4_t DIV_TW81N_NEON = VDUPQ_N_F16(DIV_TW81N); #define NE10_PRINT_Qx8_VECTOR(Q_VECTOR) ; #define NE10_PRINT_Qx4_VECTOR(Q_VECTOR) ; #define NE10_PRINT_Q2x4_VECTOR(Q2_VECTOR) ; +#endif // defined(ARM_MATH_NEON_FLOAT16) #endif // header