Searched refs:CLAMP (Results 1 – 4 of 4) sorted by relevance
/cmsis-3.4.0/CMSIS/NN/Source/SoftmaxFunctions/ |
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 | 196 output[tail_idx + i] = (int8_t)CLAMP(res, (int32_t)ACT_MAX, (int32_t)ACT_MIN); in arm_softmax_s8() 246 output[col] = (int8_t)CLAMP(res, (int32_t)127, (int32_t)-128); in arm_softmax_s8()
|
/cmsis-3.4.0/CMSIS/NN/Source/SVDFunctions/ |
D | arm_svdf_s8.c | 244 output_data[i] = (q7_t)CLAMP( in arm_svdf_s8()
|
/cmsis-3.4.0/CMSIS/NN/Include/ |
D | arm_nnsupportfunctions.h | 48 #define CLAMP(x, h, l) MAX(MIN((x), (h)), (l)) macro
|