From d25b74508275f83ae0f8680a626535be2bbe1cd7 Mon Sep 17 00:00:00 2001 From: JbR <90027771+jbr-smtg@users.noreply.github.com> Date: Wed, 6 Oct 2021 07:23:24 +0200 Subject: [PATCH] Fix warning unused tmp variable (#1335) * Fix warning unused tmp variable * Fix comments --- Source/BasicMathFunctions/arm_dot_prod_f32.c | 8 +++++--- Source/MatrixFunctions/arm_mat_cholesky_f32.c | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/Source/BasicMathFunctions/arm_dot_prod_f32.c b/Source/BasicMathFunctions/arm_dot_prod_f32.c index 36ad4434..62b86578 100644 --- a/Source/BasicMathFunctions/arm_dot_prod_f32.c +++ b/Source/BasicMathFunctions/arm_dot_prod_f32.c @@ -3,8 +3,8 @@ * Title: arm_dot_prod_f32.c * Description: Floating-point dot product * - * $Date: 23 April 2021 - * $Revision: V1.9.0 + * $Date: 05 October 2021 + * $Revision: V1.9.1 * * Target Processor: Cortex-M and Cortex-A cores * -------------------------------------------------------------------- */ @@ -132,7 +132,9 @@ void arm_dot_prod_f32( f32x4_t vec1; f32x4_t vec2; f32x4_t accum = vdupq_n_f32(0); - f32x2_t tmp = vdup_n_f32(0); +#if !defined(__aarch64__) + f32x2_t tmp = vdup_n_f32(0); +#endif /* Compute 4 outputs at a time */ blkCnt = blockSize >> 2U; diff --git a/Source/MatrixFunctions/arm_mat_cholesky_f32.c b/Source/MatrixFunctions/arm_mat_cholesky_f32.c index 39af94f4..94b96895 100755 --- a/Source/MatrixFunctions/arm_mat_cholesky_f32.c +++ b/Source/MatrixFunctions/arm_mat_cholesky_f32.c @@ -3,8 +3,8 @@ * Title: arm_mat_cholesky_f32.c * Description: Floating-point Cholesky decomposition * - * $Date: 23 April 2021 - * $Revision: V1.9.0 + * $Date: 05 October 2021 + * $Revision: V1.9.1 * * Target Processor: Cortex-M and Cortex-A cores * -------------------------------------------------------------------- */ @@ -221,7 +221,9 @@ arm_status arm_mat_cholesky_f32( f32x4_t acc, acc0, acc1, acc2, acc3; f32x4_t vecGi; f32x4_t vecGj,vecGj0,vecGj1,vecGj2,vecGj3; - f32x2_t tmp = vdup_n_f32(0); +#if !defined(__aarch64__) + f32x2_t tmp = vdup_n_f32(0); +#endif float32_t sum=0.0f; float32_t sum0=0.0f,sum1=0.0f,sum2=0.0f,sum3=0.0f;