Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 2 of 2) sorted by relevance

/cmsis-nn-latest/Source/PoolingFunctions/
Darm_avgpool_s16.c36 static void scale_q31_to_q15_and_clamp(const int32_t *buffer, in scale_q31_to_q15_and_clamp() argument
47 int32_t sum = buffer[i] > 0 ? (buffer[i] + half_count) : (buffer[i] - half_count); in scale_q31_to_q15_and_clamp()
203 int32_t *buffer = (int32_t *)ctx->buf; in arm_avgpool_s16() local
205 if (buffer == NULL) in arm_avgpool_s16()
239 buffer[i] = start[i]; in arm_avgpool_s16()
246 buffer[i] = QADD(start[i], buffer[i]); in arm_avgpool_s16()
259 scale_q31_to_q15_and_clamp(buffer, dst, ch_src, count, act_min, act_max); in arm_avgpool_s16()
Darm_avgpool_s8.c35 static void scale_q31_to_q7_and_clamp(const int32_t *buffer, in scale_q31_to_q7_and_clamp() argument
46 int32_t sum = buffer[i] > 0 ? (buffer[i] + half_count) : (buffer[i] - half_count); in scale_q31_to_q7_and_clamp()
273 int32_t *buffer = (int32_t *)ctx->buf; in arm_avgpool_s8() local
303 buffer[i] = start[i]; in arm_avgpool_s8()
310 buffer[i] = QADD(start[i], buffer[i]); in arm_avgpool_s8()
323 scale_q31_to_q7_and_clamp(buffer, dst, ch_src, count, act_min, act_max); in arm_avgpool_s8()