Home
last modified time | relevance | path

Searched refs:CLAMP (Results 1 – 8 of 8) sorted by relevance

/cmsis-nn-latest/Source/BasicMathFunctions/
Darm_elementwise_mul_s16_s8.c105 mul_res = CLAMP(mul_res, NN_Q7_MAX, NN_Q7_MIN); in arm_elementwise_mul_s16_s8()
110 mul_res = CLAMP(mul_res, NN_Q7_MAX, NN_Q7_MIN); in arm_elementwise_mul_s16_s8()
123 mul_res = CLAMP(mul_res, NN_Q7_MAX, NN_Q7_MIN); in arm_elementwise_mul_s16_s8()
/cmsis-nn-latest/Source/SoftmaxFunctions/
Darm_nn_softmax_common_s8.c111 output_s16[col] = (int16_t)CLAMP(res, (int32_t)NN_Q15_MAX, (int32_t)NN_Q15_MIN); in arm_nn_softmax_common_s8()
133 output_s8[col] = (int8_t)CLAMP(res, (int32_t)NN_Q7_MAX, (int32_t)NN_Q7_MIN); in arm_nn_softmax_common_s8()
Darm_softmax_u8.c90 output[col] = (uint8_t)CLAMP(res, (int32_t)255, (int32_t)0); in arm_softmax_u8()
Darm_softmax_s8.c197 output[tail_idx + i] = (int8_t)CLAMP(res, (int32_t)ACT_MAX, (int32_t)ACT_MIN); in arm_softmax_s8()
/cmsis-nn-latest/Source/NNSupportFunctions/
Darm_nn_vec_mat_mul_result_acc_s8_s16.c297 res00 = CLAMP(res00, NN_Q15_MAX, NN_Q15_MIN); in arm_nn_vec_mat_mul_result_acc_s8_s16()
301 res01 = CLAMP(res01, NN_Q15_MAX, NN_Q15_MIN); in arm_nn_vec_mat_mul_result_acc_s8_s16()
305 res02 = CLAMP(res02, NN_Q15_MAX, NN_Q15_MIN); in arm_nn_vec_mat_mul_result_acc_s8_s16()
336 res00 = CLAMP(res00, NN_Q15_MAX, NN_Q15_MIN); in arm_nn_vec_mat_mul_result_acc_s8_s16()
/cmsis-nn-latest/Source/SVDFunctions/
Darm_svdf_state_s16_s8.c256 output_data[i] = (int8_t)CLAMP( in arm_svdf_state_s16_s8()
Darm_svdf_s8.c271 output_data[i] = (int8_t)CLAMP( in arm_svdf_s8()
/cmsis-nn-latest/Include/
Darm_nnsupportfunctions.h55 #define CLAMP(x, h, l) MAX(MIN((x), (h)), (l)) macro