Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 25 of 191) sorted by relevance

12345678

/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/
A Ddiag.c57 shift = 0; in DiagVSprintf()
60 shift = 4; in DiagVSprintf()
63 shift = 8; in DiagVSprintf()
66 shift = 12; in DiagVSprintf()
69 shift = 16; in DiagVSprintf()
72 shift = 20; in DiagVSprintf()
75 shift = 24; in DiagVSprintf()
133 for(; shift >= 0; shift -= 4) { in DiagVSprintf()
159 for(; shift >= 0; shift -= 4) { in DiagVSprintf()
370 for(; shift >= 0; shift -= 4) in DiagSnPrintf()
[all …]
A Dstr-two-way.h332 size_t shift; in __rtl_two_way_long_needle() local
338 shift = shift_table[CANON_ELEMENT (haystack[j + needle_len - 1])]; in __rtl_two_way_long_needle()
339 if (0 < shift) in __rtl_two_way_long_needle()
341 if (memory && shift < period) in __rtl_two_way_long_needle()
346 shift = needle_len - period; in __rtl_two_way_long_needle()
349 j += shift; in __rtl_two_way_long_needle()
383 size_t shift; in __rtl_two_way_long_needle() local
390 shift = shift_table[CANON_ELEMENT (haystack[j + needle_len - 1])]; in __rtl_two_way_long_needle()
391 if (0 < shift) in __rtl_two_way_long_needle()
393 j += shift; in __rtl_two_way_long_needle()
/AliOS-Things-master/components/freetype/src/base/
A Dfttrigon.c118 FT_Int shift; in ft_trig_prenorm() local
128 shift = FT_TRIG_SAFE_MSB - shift; in ft_trig_prenorm()
137 shift = -shift; in ft_trig_prenorm()
140 return shift; in ft_trig_prenorm()
365 FT_Int shift; in FT_Vector_Rotate() local
389 shift = -shift; in FT_Vector_Rotate()
402 FT_Int shift; in FT_Vector_Length() local
424 if ( shift > 0 ) in FT_Vector_Length()
425 return ( v.x + ( 1 << ( shift - 1 ) ) ) >> shift; in FT_Vector_Length()
438 FT_Int shift; in FT_Vector_Polarize() local
[all …]
A Dftbbox.c266 FT_Int shift; in BBox_Cubic_Check() local
281 if ( shift > 0 ) in BBox_Cubic_Check()
285 shift = 2; in BBox_Cubic_Check()
287 p1 <<= shift; in BBox_Cubic_Check()
288 p2 <<= shift; in BBox_Cubic_Check()
289 p3 <<= shift; in BBox_Cubic_Check()
290 p4 <<= shift; in BBox_Cubic_Check()
296 p1 >>= -shift; in BBox_Cubic_Check()
297 p2 >>= -shift; in BBox_Cubic_Check()
298 p3 >>= -shift; in BBox_Cubic_Check()
[all …]
A Dftoutln.c72 FT_Int shift; in FT_Outline_Decompose() local
79 shift = func_interface->shift; in FT_Outline_Decompose()
935 FT_Vector in, out, shift; in FT_Outline_EmboldenXY() local
980 shift.x = in.y + out.y; in FT_Outline_EmboldenXY()
984 shift.x = -shift.x; in FT_Outline_EmboldenXY()
986 shift.y = -shift.y; in FT_Outline_EmboldenXY()
997 shift.x = FT_MulDiv( shift.x, xstrength, d ); in FT_Outline_EmboldenXY()
999 shift.x = FT_MulDiv( shift.x, l, q ); in FT_Outline_EmboldenXY()
1003 shift.y = FT_MulDiv( shift.y, ystrength, d ); in FT_Outline_EmboldenXY()
1005 shift.y = FT_MulDiv( shift.y, l, q ); in FT_Outline_EmboldenXY()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/platform/
A Dstdlib_patch.c578 shift = 0; in DiagSnPrintfPatch()
581 shift = 4; in DiagSnPrintfPatch()
584 shift = 8; in DiagSnPrintfPatch()
587 shift = 12; in DiagSnPrintfPatch()
646 for(; shift >= 0; shift -= 4) in DiagSnPrintfPatch()
671 for(; shift >= 0; shift -= 4) { in DiagSnPrintfPatch()
754 shift = 0; in VSprintfPatch()
757 shift = 4; in VSprintfPatch()
760 shift = 8; in VSprintfPatch()
831 for(; shift >= 0; shift -= 4) { in VSprintfPatch()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/ram_common/
A Drtl8721d_ram_libc.c56 shift = 0; in _rtl_vsprintf()
59 shift = 4; in _rtl_vsprintf()
62 shift = 8; in _rtl_vsprintf()
65 shift = 12; in _rtl_vsprintf()
68 shift = 16; in _rtl_vsprintf()
71 shift = 20; in _rtl_vsprintf()
74 shift = 24; in _rtl_vsprintf()
77 shift = 28; in _rtl_vsprintf()
80 shift = 28; in _rtl_vsprintf()
126 for(; shift >= 0; shift -= 4) in _rtl_vsprintf()
[all …]
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/
A Dquantization_util.cc54 int* shift) { in QuantizeMultiplier() argument
57 *shift = 0; in QuantizeMultiplier()
73 ++*shift; in QuantizeMultiplier()
86 if (*shift < -31) { in QuantizeMultiplier()
87 *shift = 0; in QuantizeMultiplier()
106 int shift; in QuantizeMultiplierSmallerThanOneExp() local
108 TFLITE_CHECK_LE(shift, 0); in QuantizeMultiplierSmallerThanOneExp()
109 *left_shift = shift; in QuantizeMultiplierSmallerThanOneExp()
128 *shift = 0; in IntegerFrExp()
283 int shift; in PreprocessSoftmaxScaling() local
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dsp/
A Drescaler_msa.c140 CALC_MULT_FIX_4(src0, scale, shift, val0_m); in ExportRowExpand_0()
141 CALC_MULT_FIX_4(src1, scale, shift, val1_m); in ExportRowExpand_0()
142 CALC_MULT_FIX_4(src2, scale, shift, val2_m); in ExportRowExpand_0()
151 CALC_MULT_FIX_4(src0, scale, shift, val0_m); in ExportRowExpand_0()
152 CALC_MULT_FIX_4(src1, scale, shift, val1_m); in ExportRowExpand_0()
160 CALC_MULT_FIX_4(src0, scale, shift, val0_m); in ExportRowExpand_0()
378 CALC_MULT_FIX_4(src0, scale, shift, val0_m);
379 CALC_MULT_FIX_4(src1, scale, shift, val1_m);
380 CALC_MULT_FIX_4(src2, scale, shift, val2_m);
390 CALC_MULT_FIX_4(src0, scale, shift, val0_m);
[all …]
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Source/SoftmaxFunctions/
A Darm_softmax_q7.c65 uint8_t shift; in arm_softmax_q7() local
89 shift = (uint8_t)__USAT(vec_in[i] - base, 3); in arm_softmax_q7()
90 sum += 0x1 << shift; in arm_softmax_q7()
100 shift = (uint8_t)__USAT(13 + base - vec_in[i], 5); in arm_softmax_q7()
101 p_out[i] = (q7_t)__SSAT((output_base >> shift), 8); in arm_softmax_q7()
A Darm_softmax_q15.c65 uint8_t shift; in arm_softmax_q15() local
88 shift = (uint8_t)__USAT(vec_in[i] - base, 5); in arm_softmax_q15()
89 sum += 0x1 << shift; in arm_softmax_q15()
106 shift = (uint8_t)__USAT(17 + base - vec_in[i], 5); in arm_softmax_q15()
107 p_out[i] = (q15_t)__SSAT((output_base >> shift), 16); in arm_softmax_q15()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/cmsis/CMSIS/NN/Source/SoftmaxFunctions/
A Darm_softmax_q7.c65 uint8_t shift; in arm_softmax_q7() local
89 shift = (uint8_t)__USAT(vec_in[i] - base, 3); in arm_softmax_q7()
90 sum += 0x1 << shift; in arm_softmax_q7()
100 shift = (uint8_t)__USAT(13 + base - vec_in[i], 5); in arm_softmax_q7()
101 p_out[i] = (q7_t)__SSAT((output_base >> shift), 8); in arm_softmax_q7()
A Darm_softmax_q15.c65 uint8_t shift; in arm_softmax_q15() local
88 shift = (uint8_t)__USAT(vec_in[i] - base, 5); in arm_softmax_q15()
89 sum += 0x1 << shift; in arm_softmax_q15()
106 shift = (uint8_t)__USAT(17 + base - vec_in[i], 5); in arm_softmax_q15()
107 p_out[i] = (q15_t)__SSAT((output_base >> shift), 16); in arm_softmax_q15()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/tools/make/downloads/cmsis/CMSIS/NN/Include/
A Darm_nnsupportfunctions.h848 const int32x4_t shift = vdupq_n_s32(-exponent); in arm_divide_by_power_of_two_mve() local
851 return vrshlq_s32(fixed_up_dividend, shift); in arm_divide_by_power_of_two_mve()
866 …ing_high_mult_mve(vshlq_s32(val, vdupq_n_s32(LEFT_SHIFT(shift))), multiplier), RIGHT_SHIFT(shift)); in arm_requantize_mve()
876 const int32x4_t shift = -exponent; in arm_divide_by_power_of_two_mve_32x4() local
879 return vrshlq_s32(fixed_up_dividend, shift); in arm_divide_by_power_of_two_mve_32x4()
887 const mve_pred16_t p = vcmpgtq_n_s32(shift, 0); in arm_requantize_mve_32x4()
889 const int32x4_t left_shift = vpselq_s32(shift, zz, p); in arm_requantize_mve_32x4()
890 const int32x4_t right_shift = -vpselq_s32(zz, shift, p); in arm_requantize_mve_32x4()
902 int32_t shift = 24; in arm_nn_exp_on_negative_values() local
904 const int32_t val_mod_minus_quarter = (val & ((1 << shift) - 1)) - (1 << shift); in arm_nn_exp_on_negative_values()
[all …]
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/cmsis/CMSIS/NN/Include/
A Darm_nnsupportfunctions.h848 const int32x4_t shift = vdupq_n_s32(-exponent); in arm_divide_by_power_of_two_mve() local
851 return vrshlq_s32(fixed_up_dividend, shift); in arm_divide_by_power_of_two_mve()
866 …ing_high_mult_mve(vshlq_s32(val, vdupq_n_s32(LEFT_SHIFT(shift))), multiplier), RIGHT_SHIFT(shift)); in arm_requantize_mve()
876 const int32x4_t shift = -exponent; in arm_divide_by_power_of_two_mve_32x4() local
879 return vrshlq_s32(fixed_up_dividend, shift); in arm_divide_by_power_of_two_mve_32x4()
887 const mve_pred16_t p = vcmpgtq_n_s32(shift, 0); in arm_requantize_mve_32x4()
889 const int32x4_t left_shift = vpselq_s32(shift, zz, p); in arm_requantize_mve_32x4()
890 const int32x4_t right_shift = -vpselq_s32(zz, shift, p); in arm_requantize_mve_32x4()
902 int32_t shift = 24; in arm_nn_exp_on_negative_values() local
904 const int32_t val_mod_minus_quarter = (val & ((1 << shift) - 1)) - (1 << shift); in arm_nn_exp_on_negative_values()
[all …]
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/
A Dpngwtran.c74 unsigned int shift; in png_do_pack() local
81 shift = 6; in png_do_pack()
91 if (shift == 0) in png_do_pack()
93 shift = 6; in png_do_pack()
100 shift -= 2; in png_do_pack()
105 if (shift != 6) in png_do_pack()
121 shift = 4; in png_do_pack()
131 if (shift == 0) in png_do_pack()
133 shift = 4; in png_do_pack()
140 shift -= 4; in png_do_pack()
[all …]
A Dpngrtran.c1903 if (shift > 0 && shift < 8) in png_init_read_transformations()
1913 if (shift > 0 && shift < 8) in png_init_read_transformations()
1923 if (shift > 0 && shift < 8) in png_init_read_transformations()
2174 shift = 0; in png_do_unpack()
2179 shift++; in png_do_unpack()
2262 int shift[4]; in png_do_unshift() local
2291 if (shift[c] <= 0 || shift[c] >= bit_depth) in png_do_unshift()
3216 int shift; in png_do_compose() local
3229 shift = 7; in png_do_compose()
4213 int shift, value; in png_do_expand_palette() local
[all …]
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/optimized/integer_ops/
A Dmean.h28 int32 multiplier, int32 shift, int32 bias, in MeanImpl() argument
93 MultiplyByQuantizedMultiplier4Rows(temp_sum, multiplier, shift); in MeanImpl()
134 acc = MultiplyByQuantizedMultiplier(acc, multiplier, shift); in MeanImpl()
146 int32 multiplier, int32 shift, int32 bias, in MeanWorkerTask()
153 shift(shift), in MeanWorkerTask()
161 MeanImpl(op_params, input_shape, input_data, multiplier, shift, bias, in Run()
170 int32 shift; member
212 int32 multiplier, shift; in Mean() local
213 QuantizeMultiplier(real_scale, &multiplier, &shift); in Mean()
222 MeanImpl(op_params, input_shape, input_data, multiplier, shift, bias, in Mean()
[all …]
/AliOS-Things-master/components/py_engine/tests/basics/
A Dint_big_lshift.py3 for shift in range(70):
4 print(i, '<<', shift, '=', i << shift)
/AliOS-Things-master/components/a2sa/internal/driver/core/
A Dcontrol.h37 {.reg = sreg, .rreg = sreg, .shift = left, \
41 #define AOS_SINGLE_VALUE(reg, shift, max, invert, autodisable) \ argument
42 AOS_DOUBLE_VALUE(reg, shift, shift, max, invert, autodisable)
44 #define SOC_SINGLE_EXT(sname, reg, shift, max, invert, handler_get, handler_put) \ argument
50 .private_value = AOS_SINGLE_VALUE(reg, shift, max, invert, 0) \
138 unsigned int shift, rshift; member
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/net_os/
A Dnet_bitops.h184 static __INLINE __u32 rol32(__u32 word, unsigned int shift) in rol32() argument
186 return (word << shift) | (word >> (32 - shift)); in rol32()
194 static __INLINE __u32 ror32(__u32 word, unsigned int shift) in ror32() argument
196 return (word >> shift) | (word << (32 - shift)); in ror32()
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/cmsis-dsp/Source/FilteringFunctions/
A Darm_biquad_cascade_df1_fast_q31.c78 int32_t shift = (int32_t) S->postShift + 1; /* Shift to be applied to the output */ in arm_biquad_cascade_df1_fast_q31() local
130 Yn2 = acc << shift; in arm_biquad_cascade_df1_fast_q31()
156 Yn1 = acc << shift; in arm_biquad_cascade_df1_fast_q31()
182 Yn2 = acc << shift; in arm_biquad_cascade_df1_fast_q31()
214 Yn1 = acc << shift; in arm_biquad_cascade_df1_fast_q31()
254 acc = acc << shift; in arm_biquad_cascade_df1_fast_q31()
A Darm_biquad_cascade_df1_32x64_q31.c190 int32_t shift = (int32_t) S->postShift + 1; /* Shift to be applied to the output */ in arm_biquad_cas_df1_32x64_q31() local
249 Yn2 = acc << shift; in arm_biquad_cas_df1_32x64_q31()
284 Yn1 = acc << shift; in arm_biquad_cas_df1_32x64_q31()
320 Yn2 = acc << shift; in arm_biquad_cas_df1_32x64_q31()
354 Yn1 = acc << shift; in arm_biquad_cas_df1_32x64_q31()
416 Yn1 = acc << shift; in arm_biquad_cas_df1_32x64_q31()
507 Yn1 = acc << shift; in arm_biquad_cas_df1_32x64_q31()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/ruy/ruy/
A Dapply_multiplier.cc50 int shift) { in MultiplyByQuantizedMultiplier() argument
51 RUY_CHECK_GE(shift, -31); in MultiplyByQuantizedMultiplier()
53 int total_shift = 31 - shift; in MultiplyByQuantizedMultiplier()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/kernels/internal/reference/
A Ddepthwiseconv_uint8.h66 int shift) { in DepthwiseConvRound() argument
68 return MultiplyByQuantizedMultiplier(x, quantized_multiplier, shift); in DepthwiseConvRound()
73 int32_t x, int32_t quantized_multiplier, int shift) {
74 return MultiplyByQuantizedMultiplier(x, quantized_multiplier, shift);
79 int32_t x, int32_t quantized_multiplier, int shift) {
81 const int left_shift = shift > 0 ? shift : 0;
82 const int right_shift = shift > 0 ? 0 : -shift;

Completed in 52 milliseconds

12345678