ref: 6673e34b6566edcb825976ffc178938bbdcbf2ab
parent: f1fc944b41e9267c021a77a1707528c3ae4b3e3b
author: Jean-Marc Valin <jmvalin@jmvalin.ca>
date: Thu Feb 22 12:56:12 EST 2024
Fix build on ARMv7 Fixes regression in 83368e6. vcgez_s16() is A64-only, but vcge_s16(..., vdup_n_s16(0)) works everywhere.
--- a/silk/arm/NSQ_del_dec_neon_intr.c
+++ b/silk/arm/NSQ_del_dec_neon_intr.c
@@ -730,7 +730,7 @@
int16x4_t tmp1_s16x4, tmp2_s16x4, tmp_summand_s16x4;
q1_Q10_s16x4 = vshl_n_s16( q1_Q0_s16x4, 10 );
- tmp_summand_s16x4 = vand_s16( vreinterpret_s16_u16(vcgez_s16(q1_Q0_s16x4)), vdup_n_s16( offset_Q10 - QUANT_LEVEL_ADJUST_Q10 ) );
+ tmp_summand_s16x4 = vand_s16( vreinterpret_s16_u16(vcge_s16(q1_Q0_s16x4, vdup_n_s16(0))), vdup_n_s16( offset_Q10 - QUANT_LEVEL_ADJUST_Q10 ) );
tmp1_s16x4 = vadd_s16( q1_Q10_s16x4, tmp_summand_s16x4 );
tmp_summand_s16x4 = vbsl_s16( lessThanMinus1_u16x4, vdup_n_s16( offset_Q10 + QUANT_LEVEL_ADJUST_Q10 ), vdup_n_s16(0) );
q1_Q10_s16x4 = vadd_s16( q1_Q10_s16x4, tmp_summand_s16x4);
--
⑨