Skip to content

Commit

Permalink
Correct issue #217
Browse files Browse the repository at this point in the history
  • Loading branch information
christophe0606 committed Nov 4, 2024
1 parent c410a2c commit 51e7dba
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions Source/StatisticsFunctions/arm_absmin_no_idx_q15.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ ARM_DSP_ATTRIBUTE void arm_absmin_no_idx_q15(
uint16_t blkCnt; /* loop counters */
q15x8_t vecSrc;
q15_t const *pSrcVec;
uint16x8_t curExtremValVec = vdupq_n_s16(Q15_ABSMAX);
q15_t minValue = Q15_ABSMAX;
uint16x8_t curExtremValVec = vdupq_n_u16(Q15_ABSMAX);
uint16_t minValue = Q15_ABSMAX;
mve_pred16_t p0;


Expand Down Expand Up @@ -95,8 +95,8 @@ ARM_DSP_ATTRIBUTE void arm_absmin_no_idx_q15(
/*
* Get min value across the vector
*/
minValue = vminavq(minValue, (q15x8_t)curExtremValVec);
*pResult = minValue;
minValue = vminvq(minValue, curExtremValVec);
*pResult = __USAT(minValue, 15);
}

#else
Expand Down
8 changes: 4 additions & 4 deletions Source/StatisticsFunctions/arm_absmin_no_idx_q31.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ ARM_DSP_ATTRIBUTE void arm_absmin_no_idx_q31(
int32_t blkCnt; /* loop counters */
q31x4_t vecSrc;
q31_t const *pSrcVec;
uint32x4_t curExtremValVec = vdupq_n_s32(Q31_ABSMAX);
q31_t minValue = Q31_ABSMAX;
uint32x4_t curExtremValVec = vdupq_n_u32(Q31_ABSMAX);
uint32_t minValue = Q31_ABSMAX;
mve_pred16_t p0;


Expand Down Expand Up @@ -96,8 +96,8 @@ ARM_DSP_ATTRIBUTE void arm_absmin_no_idx_q31(
/*
* Get min value across the vector
*/
minValue = vminavq(minValue, (q31x4_t)curExtremValVec);
*pResult = minValue;
minValue = vminvq(minValue, curExtremValVec);
*pResult = clip_q63_to_q31((q63_t)minValue);
}

#else
Expand Down
8 changes: 4 additions & 4 deletions Source/StatisticsFunctions/arm_absmin_no_idx_q7.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ ARM_DSP_ATTRIBUTE void arm_absmin_no_idx_q7(
int32_t blkCnt; /* loop counters */
q7x16_t vecSrc;
q7_t const *pSrcVec;
uint8x16_t curExtremValVec = vdupq_n_s8(Q7_ABSMAX);
q7_t minValue = Q7_ABSMAX;
uint8x16_t curExtremValVec = vdupq_n_u8(Q7_ABSMAX);
uint8_t minValue = Q7_ABSMAX;
mve_pred16_t p0;


Expand Down Expand Up @@ -98,8 +98,8 @@ ARM_DSP_ATTRIBUTE void arm_absmin_no_idx_q7(
/*
* Get min value across the vector
*/
minValue = vminavq(minValue, (q7x16_t)curExtremValVec);
*pResult = minValue;
minValue = vminvq(minValue, curExtremValVec);
*pResult = __USAT(minValue,7);
}

#else
Expand Down

0 comments on commit 51e7dba

Please sign in to comment.