Home
last modified time | relevance | path

Searched refs:mult (Results 1 – 25 of 33) sorted by relevance

12

/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dsp/
A Drescaler_sse2.c181 if (mult != NULL) { in LoadDispatchAndMult_SSE2()
182 *out0 = _mm_mul_epu32(A0, *mult); in LoadDispatchAndMult_SSE2()
183 *out1 = _mm_mul_epu32(A1, *mult); in LoadDispatchAndMult_SSE2()
184 *out2 = _mm_mul_epu32(A2, *mult); in LoadDispatchAndMult_SSE2()
185 *out3 = _mm_mul_epu32(A3, *mult); in LoadDispatchAndMult_SSE2()
202 const __m128i B0 = _mm_mul_epu32(*A0, *mult); in ProcessRow_SSE2()
203 const __m128i B1 = _mm_mul_epu32(*A1, *mult); in ProcessRow_SSE2()
204 const __m128i B2 = _mm_mul_epu32(*A2, *mult); in ProcessRow_SSE2()
205 const __m128i B3 = _mm_mul_epu32(*A3, *mult); in ProcessRow_SSE2()
235 const __m128i B0 = _mm_mul_epu32(*A0, *mult); in ProcessRow_Floor_SSE2()
[all …]
A Dalpha_processing.c29 static uint32_t Mult(uint8_t x, uint32_t mult) { in Mult() argument
30 const uint32_t v = (x * mult + HALF) >> MFIX; in Mult()
233 const uint32_t mult = MULTIPLIER(a); in ApplyAlphaMultiply_C() local
234 rgb[4 * i + 0] = PREMULTIPLY(rgb[4 * i + 0], mult); in ApplyAlphaMultiply_C()
235 rgb[4 * i + 1] = PREMULTIPLY(rgb[4 * i + 1], mult); in ApplyAlphaMultiply_C()
236 rgb[4 * i + 2] = PREMULTIPLY(rgb[4 * i + 2], mult); in ApplyAlphaMultiply_C()
271 const uint32_t mult = MULTIPLIER(a); in ApplyAlphaMultiply4444_C() local
272 const uint8_t r = multiply(dither_hi(rg), mult); in ApplyAlphaMultiply4444_C()
273 const uint8_t g = multiply(dither_lo(rg), mult); in ApplyAlphaMultiply4444_C()
274 const uint8_t b = multiply(dither_hi(ba), mult); in ApplyAlphaMultiply4444_C()
A Dalpha_processing_neon.c68 const uint32_t mult = MULTIPLIER(a); in ApplyAlphaMultiply_NEON() local
69 rgb[4 * i + 0] = PREMULTIPLY(rgb[4 * i + 0], mult); in ApplyAlphaMultiply_NEON()
70 rgb[4 * i + 1] = PREMULTIPLY(rgb[4 * i + 1], mult); in ApplyAlphaMultiply_NEON()
71 rgb[4 * i + 2] = PREMULTIPLY(rgb[4 * i + 2], mult); in ApplyAlphaMultiply_NEON()
A Drescaler_msa.c87 #define CALC_MULT_FIX2_16(in0, in1, in2, in3, mult, scale, shift, \ argument
93 DOTP_UW2_UD(tmp0, tmp1, mult, mult, out0, out1); \
94 DOTP_UW2_UD(tmp2, tmp3, mult, mult, out2, out3); \
102 #define CALC_MULT_FIX2_4(in0, in1, mult, scale, shift, dst) do { \ argument
107 DOTP_UW2_UD(tmp0, tmp1, mult, mult, out0, out1); \
A Dalpha_processing_sse2.c201 const uint32_t mult = MULTIPLIER(a); in ApplyAlphaMultiply_SSE2() local
202 rgb[4 * i + 0] = PREMULTIPLY(rgb[4 * i + 0], mult); in ApplyAlphaMultiply_SSE2()
203 rgb[4 * i + 1] = PREMULTIPLY(rgb[4 * i + 1], mult); in ApplyAlphaMultiply_SSE2()
204 rgb[4 * i + 2] = PREMULTIPLY(rgb[4 * i + 2], mult); in ApplyAlphaMultiply_SSE2()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/cmsis/CMSIS/NN/Source/NNSupportFunctions/
A Darm_nn_depthwise_conv_nt_t_padded_s8.c111 const int32x4_t mult = vldrwq_s32(out_mult); in arm_nn_depthwise_conv_nt_t_padded_s8() local
116 out_0 = arm_requantize_mve_32x4(out_0, mult, shift); in arm_nn_depthwise_conv_nt_t_padded_s8()
123 out_1 = arm_requantize_mve_32x4(out_1, mult, shift); in arm_nn_depthwise_conv_nt_t_padded_s8()
129 out_2 = arm_requantize_mve_32x4(out_2, mult, shift); in arm_nn_depthwise_conv_nt_t_padded_s8()
135 out_3 = arm_requantize_mve_32x4(out_3, mult, shift); in arm_nn_depthwise_conv_nt_t_padded_s8()
A Darm_nn_depthwise_conv_nt_t_s8.c113 const int32x4_t mult = vldrwq_s32(out_mult); in arm_nn_depthwise_conv_nt_t_s8() local
119 out_0 = arm_requantize_mve_32x4(out_0, mult, shift); in arm_nn_depthwise_conv_nt_t_s8()
125 out_1 = arm_requantize_mve_32x4(out_1, mult, shift); in arm_nn_depthwise_conv_nt_t_s8()
131 out_2 = arm_requantize_mve_32x4(out_2, mult, shift); in arm_nn_depthwise_conv_nt_t_s8()
137 out_3 = arm_requantize_mve_32x4(out_3, mult, shift); in arm_nn_depthwise_conv_nt_t_s8()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/NNSupportFunctions/
A Darm_nn_depthwise_conv_nt_t_padded_s8.c111 const int32x4_t mult = vldrwq_s32(out_mult); in arm_nn_depthwise_conv_nt_t_padded_s8() local
116 out_0 = arm_requantize_mve_32x4(out_0, mult, shift); in arm_nn_depthwise_conv_nt_t_padded_s8()
123 out_1 = arm_requantize_mve_32x4(out_1, mult, shift); in arm_nn_depthwise_conv_nt_t_padded_s8()
129 out_2 = arm_requantize_mve_32x4(out_2, mult, shift); in arm_nn_depthwise_conv_nt_t_padded_s8()
135 out_3 = arm_requantize_mve_32x4(out_3, mult, shift); in arm_nn_depthwise_conv_nt_t_padded_s8()
A Darm_nn_depthwise_conv_nt_t_s8.c113 const int32x4_t mult = vldrwq_s32(out_mult); in arm_nn_depthwise_conv_nt_t_s8() local
119 out_0 = arm_requantize_mve_32x4(out_0, mult, shift); in arm_nn_depthwise_conv_nt_t_s8()
125 out_1 = arm_requantize_mve_32x4(out_1, mult, shift); in arm_nn_depthwise_conv_nt_t_s8()
131 out_2 = arm_requantize_mve_32x4(out_2, mult, shift); in arm_nn_depthwise_conv_nt_t_s8()
137 out_3 = arm_requantize_mve_32x4(out_3, mult, shift); in arm_nn_depthwise_conv_nt_t_s8()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/cmsis/CMSIS/NN/Source/SoftmaxFunctions/
A Darm_softmax_s8.c89 const int32_t mult, in arm_softmax_s8() argument
128 int32x4_t res = MUL_SAT_MVE(ip, vdupq_n_s32(mult)); in arm_softmax_s8()
146 sum += DIV_POW2(EXP_ON_NEG(MUL_SAT(diff * mask, mult)), ACCUM_BITS); in arm_softmax_s8()
170 tmp_res = MUL_SAT_MVE(ip, vdupq_n_s32(mult)); in arm_softmax_s8()
195 … DIV_POW2(MUL_SAT(shifted_scale, EXP_ON_NEG(MUL_SAT(diff * mask, mult))), bits_over_unit) - 128; in arm_softmax_s8()
231 sum += DIV_POW2(EXP_ON_NEG(MUL_SAT(diff * mask, mult)), ACCUM_BITS); in arm_softmax_s8()
245 … DIV_POW2(MUL_SAT(shifted_scale, EXP_ON_NEG(MUL_SAT(diff * mask, mult))), bits_over_unit) - 128; in arm_softmax_s8()
A Darm_softmax_u8.c47 const int32_t mult, in arm_softmax_u8() argument
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()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/SoftmaxFunctions/
A Darm_softmax_s8.c89 const int32_t mult, in arm_softmax_s8() argument
128 int32x4_t res = MUL_SAT_MVE(ip, vdupq_n_s32(mult)); in arm_softmax_s8()
146 sum += DIV_POW2(EXP_ON_NEG(MUL_SAT(diff * mask, mult)), ACCUM_BITS); in arm_softmax_s8()
170 tmp_res = MUL_SAT_MVE(ip, vdupq_n_s32(mult)); in arm_softmax_s8()
195 … DIV_POW2(MUL_SAT(shifted_scale, EXP_ON_NEG(MUL_SAT(diff * mask, mult))), bits_over_unit) - 128; in arm_softmax_s8()
231 sum += DIV_POW2(EXP_ON_NEG(MUL_SAT(diff * mask, mult)), ACCUM_BITS); in arm_softmax_s8()
245 … DIV_POW2(MUL_SAT(shifted_scale, EXP_ON_NEG(MUL_SAT(diff * mask, mult))), bits_over_unit) - 128; in arm_softmax_s8()
A Darm_softmax_u8.c47 const int32_t mult, in arm_softmax_u8() argument
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()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/cmsis/CMSIS/NN/Source/ConvolutionFunctions/
A Darm_nn_depthwise_conv_s8_core.c133 const int32x4_t mult = vldrwq_s32(out_mult); in arm_nn_depthwise_conv_s8_core() local
138 out_0 = arm_requantize_mve_32x4(out_0, mult, shift); in arm_nn_depthwise_conv_s8_core()
139 out_1 = arm_requantize_mve_32x4(out_1, mult, shift); in arm_nn_depthwise_conv_s8_core()
184 const int32x4_t mult = vldrwq_z_s32(out_mult, p); in arm_nn_depthwise_conv_s8_core() local
187 col_0_sum = arm_requantize_mve_32x4(col_0_sum, mult, shift); in arm_nn_depthwise_conv_s8_core()
188 col_1_sum = arm_requantize_mve_32x4(col_1_sum, mult, shift); in arm_nn_depthwise_conv_s8_core()
A Darm_nn_mat_mult_kernel_s8_s16.c148 int32x4_t mult = vldrwq_s32(out_mult); in arm_nn_mat_mult_kernel_s8_s16() local
153 out_vec_0 = arm_requantize_mve_32x4(out_vec_0, mult, shift); in arm_nn_mat_mult_kernel_s8_s16()
154 out_vec_1 = arm_requantize_mve_32x4(out_vec_1, mult, shift); in arm_nn_mat_mult_kernel_s8_s16()
A Darm_depthwise_conv_s8_opt.c188 const int32x4_t mult = vldrwq_s32(&output_mult[offset]); in arm_depthwise_conv_s8_opt() local
191 out_0 = arm_requantize_mve_32x4(out_0, mult, shift); in arm_depthwise_conv_s8_opt()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/ConvolutionFunctions/
A Darm_nn_depthwise_conv_s8_core.c133 const int32x4_t mult = vldrwq_s32(out_mult); in arm_nn_depthwise_conv_s8_core() local
138 out_0 = arm_requantize_mve_32x4(out_0, mult, shift); in arm_nn_depthwise_conv_s8_core()
139 out_1 = arm_requantize_mve_32x4(out_1, mult, shift); in arm_nn_depthwise_conv_s8_core()
184 const int32x4_t mult = vldrwq_z_s32(out_mult, p); in arm_nn_depthwise_conv_s8_core() local
187 col_0_sum = arm_requantize_mve_32x4(col_0_sum, mult, shift); in arm_nn_depthwise_conv_s8_core()
188 col_1_sum = arm_requantize_mve_32x4(col_1_sum, mult, shift); in arm_nn_depthwise_conv_s8_core()
A Darm_nn_mat_mult_kernel_s8_s16.c148 int32x4_t mult = vldrwq_s32(out_mult); in arm_nn_mat_mult_kernel_s8_s16() local
153 out_vec_0 = arm_requantize_mve_32x4(out_vec_0, mult, shift); in arm_nn_mat_mult_kernel_s8_s16()
154 out_vec_1 = arm_requantize_mve_32x4(out_vec_1, mult, shift); in arm_nn_mat_mult_kernel_s8_s16()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Include/
A Darm_nnsupportfunctions.h702 q63_t mult = 1 << 30; in arm_nn_doubling_high_mult() local
706 mult = 1 - mult; in arm_nn_doubling_high_mult()
709 mult = mult + (q63_t)m1 * m2; in arm_nn_doubling_high_mult()
713 result = (int32_t)(mult / (1ll << 31)); in arm_nn_doubling_high_mult()
739 union arm_nn_long_long mult; in arm_nn_doubling_high_mult_no_sat() local
742 mult.word.low = 1 << 30; in arm_nn_doubling_high_mult_no_sat()
743 mult.word.high = 0; in arm_nn_doubling_high_mult_no_sat()
746 mult.long_long = mult.long_long + (q63_t)m1 * m2; in arm_nn_doubling_high_mult_no_sat()
750 result = (int32_t)(mult.long_long >> 31); in arm_nn_doubling_high_mult_no_sat()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/cmsis/CMSIS/NN/Include/
A Darm_nnsupportfunctions.h702 q63_t mult = 1 << 30; in arm_nn_doubling_high_mult() local
706 mult = 1 - mult; in arm_nn_doubling_high_mult()
709 mult = mult + (q63_t)m1 * m2; in arm_nn_doubling_high_mult()
713 result = (int32_t)(mult / (1ll << 31)); in arm_nn_doubling_high_mult()
739 union arm_nn_long_long mult; in arm_nn_doubling_high_mult_no_sat() local
742 mult.word.low = 1 << 30; in arm_nn_doubling_high_mult_no_sat()
743 mult.word.high = 0; in arm_nn_doubling_high_mult_no_sat()
746 mult.long_long = mult.long_long + (q63_t)m1 * m2; in arm_nn_doubling_high_mult_no_sat()
750 result = (int32_t)(mult.long_long >> 31); in arm_nn_doubling_high_mult_no_sat()
/AliOS-Things-master/components/py_engine/engine/py/
A Dmodbuiltins.c489 …mp_obj_t mult = mp_binary_op(MP_BINARY_OP_POWER, MP_OBJ_NEW_SMALL_INT(10), MP_OBJ_NEW_SMALL_INT(-n… in mp_builtin_round() local
490 mp_obj_t half_mult = mp_binary_op(MP_BINARY_OP_FLOOR_DIVIDE, mult, MP_OBJ_NEW_SMALL_INT(2)); in mp_builtin_round()
491 mp_obj_t modulo = mp_binary_op(MP_BINARY_OP_MODULO, o_in, mult); in mp_builtin_round()
496 return mp_binary_op(MP_BINARY_OP_ADD, rounded, mult); in mp_builtin_round()
499 mp_obj_t floor = mp_binary_op(MP_BINARY_OP_FLOOR_DIVIDE, o_in, mult); in mp_builtin_round()
501 return mp_binary_op(MP_BINARY_OP_ADD, rounded, mult); in mp_builtin_round()
512 mp_float_t mult = MICROPY_FLOAT_C_FUN(pow)(10, (mp_float_t)num_dig); in mp_builtin_round() local
514 mp_float_t rounded = MICROPY_FLOAT_C_FUN(nearbyint)(val * mult) / mult; in mp_builtin_round()
/AliOS-Things-master/components/SDL2/src/audio/
A DSDL_audiocvt.c648 const int mult = (dst_bitsize / src_bitsize); in SDL_BuildAudioTypeCVTToFloat() local
649 cvt->len_mult *= mult; in SDL_BuildAudioTypeCVTToFloat()
650 cvt->len_ratio *= mult; in SDL_BuildAudioTypeCVTToFloat()
687 const int mult = (dst_bitsize / src_bitsize); in SDL_BuildAudioTypeCVTFromFloat() local
688 cvt->len_mult *= mult; in SDL_BuildAudioTypeCVTFromFloat()
689 cvt->len_ratio *= mult; in SDL_BuildAudioTypeCVTFromFloat()
815 const double mult = ((double) dst_rate) / ((double) src_rate); in SDL_BuildAudioResampleCVT() local
816 cvt->len_mult *= (int) SDL_ceil(mult); in SDL_BuildAudioResampleCVT()
817 cvt->len_ratio *= mult; in SDL_BuildAudioResampleCVT()
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/imageio/
A Dtiffdec.c125 static uint32_t Unmult(uint8_t x, uint32_t mult) { in Unmult() argument
126 const uint32_t v = (x * mult + HALF) >> MFIX; in Unmult()
/AliOS-Things-master/components/SDL2/src/stdlib/
A DSDL_string.c245 int mult = 10; in SDL_ScanFloat() local
249 value += (double) lvalue / mult; in SDL_ScanFloat()
250 mult *= 10; in SDL_ScanFloat()
1582 int mult = 10; in SDL_PrintFloat() local
1589 value = (unsigned long) (arg * mult); in SDL_PrintFloat()
1598 arg -= (double) value / mult; in SDL_PrintFloat()
1599 mult *= 10; in SDL_PrintFloat()
/AliOS-Things-master/components/oss/src/external/tinyxml2/
A Dtinyxml2.cpp469 unsigned mult = 1; in GetCharacterRef() local
505 TIXMLASSERT( digit == 0 || mult <= UINT_MAX / digit ); in GetCharacterRef()
506 const unsigned int digitScaled = mult * digit; in GetCharacterRef()
509 TIXMLASSERT( mult <= UINT_MAX / 16 ); in GetCharacterRef()
510 mult *= 16; in GetCharacterRef()
535 TIXMLASSERT( digit == 0 || mult <= UINT_MAX / digit ); in GetCharacterRef()
536 const unsigned int digitScaled = mult * digit; in GetCharacterRef()
543 TIXMLASSERT( mult <= UINT_MAX / 10 ); in GetCharacterRef()
544 mult *= 10; in GetCharacterRef()

Completed in 54 milliseconds

12