Home
last modified time | relevance | path

Searched refs:headroom (Results 1 – 4 of 4) sorted by relevance

/cmsis-nn-3.6.0-3.5.0/Source/SoftmaxFunctions/
Darm_softmax_u8.c79 const int32_t headroom = CLZ((uint32_t)sum); in arm_softmax_u8() local
80 const int32_t bits_over_unit = ACCUM_BITS - headroom + 23; in arm_softmax_u8()
81 const int32_t shifted_scale = ONE_OVER1((sum << headroom) - (1 << 31)); in arm_softmax_u8()
Darm_nn_softmax_common_s8.c92 const int32_t headroom = CLZ(sum); in arm_nn_softmax_common_s8() local
93 const int32_t shifted_scale = ONE_OVER1((sum > 0 ? sum << headroom : 0) - (1 << 31)); in arm_nn_softmax_common_s8()
100 bits_over_unit = ACCUM_BITS - headroom + 15; in arm_nn_softmax_common_s8()
123 bits_over_unit = ACCUM_BITS - headroom + 23; in arm_nn_softmax_common_s8()
Darm_softmax_s16.c87 const int32_t headroom = CLZ(sum); in arm_softmax_s16() local
90 const int32_t shifted_sum = (((sum) << (headroom - 1)) + (1 << 13)) >> 14; in arm_softmax_s16()
107 const int16_t right_shift = 30 - headroom; in arm_softmax_s16()
Darm_softmax_s8.c150 const int32_t headroom = CLZ((uint32_t)sum); in arm_softmax_s8() local
151 const int32_t bits_over_unit = ACCUM_BITS - headroom + 23; in arm_softmax_s8()
152 const int32_t shifted_scale = ONE_OVER1((sum > 0 ? sum << headroom : 0) - (1 << 31)); in arm_softmax_s8()