Searched refs:MUL_SAT (Results 1 – 4 of 4) sorted by relevance
/cmsis-nn-latest/Source/SoftmaxFunctions/ |
D | arm_nn_softmax_common_s8.c | 88 sum += DIV_POW2(EXP_ON_NEG(MUL_SAT(diff * mask, mult)), ACCUM_BITS); in arm_nn_softmax_common_s8() 109 … DIV_POW2(MUL_SAT(shifted_scale, EXP_ON_NEG(MUL_SAT(diff * mask, mult))), bits_over_unit) + in arm_nn_softmax_common_s8() 131 … DIV_POW2(MUL_SAT(shifted_scale, EXP_ON_NEG(MUL_SAT(diff * mask, mult))), bits_over_unit) + in arm_nn_softmax_common_s8()
|
D | arm_softmax_u8.c | 75 sum += DIV_POW2(EXP_ON_NEG(MUL_SAT(diff * mask, mult)), ACCUM_BITS); in arm_softmax_u8() 89 … DIV_POW2(MUL_SAT(shifted_scale, EXP_ON_NEG(MUL_SAT(diff * mask, mult))), bits_over_unit); in arm_softmax_u8()
|
D | arm_softmax_s8.c | 146 sum += DIV_POW2(EXP_ON_NEG(MUL_SAT(diff * mask, mult)), ACCUM_BITS); in arm_softmax_s8() 195 … DIV_POW2(MUL_SAT(shifted_scale, EXP_ON_NEG(MUL_SAT(diff * mask, mult))), bits_over_unit) + in arm_softmax_s8()
|
/cmsis-nn-latest/Include/ |
D | arm_nnsupportfunctions.h | 1274 #define MUL_SAT(a, b) arm_nn_doubling_high_mult((a), (b)) macro 1654 const int32_t x2 = MUL_SAT(x, x); in arm_nn_exp_on_negative_values() 1657 …MUL_SAT(1895147668, x + DIV_POW2(MUL_SAT(DIV_POW2(MUL_SAT(x2, x2), 2) + MUL_SAT(x2, x), 715827883)… in arm_nn_exp_on_negative_values() 1662 …result = SELECT_USING_MASK(mask, MUL_SAT(result, x), result); … in arm_nn_exp_on_negative_values() 1692 int32_t x = 1515870810 + MUL_SAT(half_denominator, -1010580540); in arm_nn_one_over_one_plus_x_for_x_in_0_1() 1695 x += MUL_POW2(MUL_SAT(x, shift - MUL_SAT(half_denominator, x)), 2); in arm_nn_one_over_one_plus_x_for_x_in_0_1() 1696 x += MUL_POW2(MUL_SAT(x, shift - MUL_SAT(half_denominator, x)), 2); in arm_nn_one_over_one_plus_x_for_x_in_0_1() 1697 x += MUL_POW2(MUL_SAT(x, shift - MUL_SAT(half_denominator, x)), 2); in arm_nn_one_over_one_plus_x_for_x_in_0_1()
|