Searched refs:headroom (Results 1 – 4 of 4) sorted by relevance
79 const int32_t headroom = CLZ((uint32_t)sum); in arm_softmax_u8() local80 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()
92 const int32_t headroom = CLZ(sum); in arm_nn_softmax_common_s8() local93 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()
87 const int32_t headroom = CLZ(sum); in arm_softmax_s16() local90 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()
150 const int32_t headroom = CLZ((uint32_t)sum); in arm_softmax_s8() local151 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()