Searched refs:CLAMP (Results 1 – 8 of 8) sorted by relevance
/cmsis-nn-latest/Source/BasicMathFunctions/ |
D | arm_elementwise_mul_s16_s8.c | 105 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/ |
D | arm_nn_softmax_common_s8.c | 111 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()
|
D | arm_softmax_u8.c | 90 output[col] = (uint8_t)CLAMP(res, (int32_t)255, (int32_t)0); in arm_softmax_u8()
|
D | arm_softmax_s8.c | 197 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/ |
D | arm_nn_vec_mat_mul_result_acc_s8_s16.c | 297 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/ |
D | arm_svdf_state_s16_s8.c | 256 output_data[i] = (int8_t)CLAMP( in arm_svdf_state_s16_s8()
|
D | arm_svdf_s8.c | 271 output_data[i] = (int8_t)CLAMP( in arm_svdf_s8()
|
/cmsis-nn-latest/Include/ |
D | arm_nnsupportfunctions.h | 55 #define CLAMP(x, h, l) MAX(MIN((x), (h)), (l)) macro
|