Searched refs:half_count (Results 1 – 2 of 2) sorted by relevance
/cmsis-nn-latest/Source/PoolingFunctions/ |
D | arm_avgpool_s8.c | 42 const int half_count = count / 2; in scale_q31_to_q7_and_clamp() local 46 int32_t sum = buffer[i] > 0 ? (buffer[i] + half_count) : (buffer[i] - half_count); in scale_q31_to_q7_and_clamp() 171 const int32_t half_count = count / 2; in arm_avgpool_s8() local 174 sum_1 = vaddq_m_n_s32(sum_1, sum_1, half_count, p); in arm_avgpool_s8() 175 sum_1 = vsubq_m_n_s32(sum_1, sum_1, half_count, ~p); in arm_avgpool_s8() 178 sum_2 = vaddq_m_n_s32(sum_2, sum_2, half_count, p); in arm_avgpool_s8() 179 sum_2 = vsubq_m_n_s32(sum_2, sum_2, half_count, ~p); in arm_avgpool_s8() 182 sum_3 = vaddq_m_n_s32(sum_3, sum_3, half_count, p); in arm_avgpool_s8() 183 sum_3 = vsubq_m_n_s32(sum_3, sum_3, half_count, ~p); in arm_avgpool_s8() 186 sum_4 = vaddq_m_n_s32(sum_4, sum_4, half_count, p); in arm_avgpool_s8() [all …]
|
D | arm_avgpool_s16.c | 43 const int half_count = count / 2; in scale_q31_to_q15_and_clamp() local 47 int32_t sum = buffer[i] > 0 ? (buffer[i] + half_count) : (buffer[i] - half_count); in scale_q31_to_q15_and_clamp() 160 const int32_t half_count = count / 2; in arm_avgpool_s16() local 163 sum_1 = vaddq_m_n_s32(sum_1, sum_1, half_count, p); in arm_avgpool_s16() 164 sum_1 = vsubq_m_n_s32(sum_1, sum_1, half_count, ~p); in arm_avgpool_s16() 167 sum_2 = vaddq_m_n_s32(sum_2, sum_2, half_count, p); in arm_avgpool_s16() 168 sum_2 = vsubq_m_n_s32(sum_2, sum_2, half_count, ~p); in arm_avgpool_s16()
|