Home
last modified time | relevance | path

Searched refs:left_shift (Results 1 – 25 of 84) sorted by relevance

1234

/external/libaom/libaom/aom_dsp/x86/
Dsad_highbd_avx2.c148 const int left_shift = 2; in aom_highbd_sad32xN_avx2() local
153 srcp += src_stride << left_shift; in aom_highbd_sad32xN_avx2()
154 refp += ref_stride << left_shift; in aom_highbd_sad32xN_avx2()
199 const int left_shift = 1; in aom_highbd_sad64xN_avx2() local
203 srcp += src_stride << left_shift; in aom_highbd_sad64xN_avx2()
204 refp += ref_stride << left_shift; in aom_highbd_sad64xN_avx2()
314 const int left_shift = 3; in aom_highbd_sad16x16_avg_avx2() local
317 src += src_stride << left_shift; in aom_highbd_sad16x16_avg_avx2()
318 ref += ref_stride << left_shift; in aom_highbd_sad16x16_avg_avx2()
319 second_pred += 16 << left_shift; in aom_highbd_sad16x16_avg_avx2()
[all …]
/external/tensorflow/tensorflow/lite/kernels/internal/
Dquantization_util.cc94 int* left_shift) { in QuantizeMultiplierGreaterThanOne() argument
96 QuantizeMultiplier(double_multiplier, quantized_multiplier, left_shift); in QuantizeMultiplierGreaterThanOne()
97 TFLITE_CHECK_GE(*left_shift, 0); in QuantizeMultiplierGreaterThanOne()
102 int* left_shift) { in QuantizeMultiplierSmallerThanOneExp() argument
108 *left_shift = shift; in QuantizeMultiplierSmallerThanOneExp()
270 int32_t* quantized_multiplier, int* left_shift) { in PreprocessSoftmaxScaling() argument
296 quantized_multiplier, left_shift); in PreprocessSoftmaxScaling()
302 int* left_shift, in PreprocessLogSoftmaxScalingExp() argument
306 quantized_multiplier, left_shift); in PreprocessLogSoftmaxScalingExp()
310 (1 << (31 - *left_shift)) / static_cast<double>(*quantized_multiplier); in PreprocessLogSoftmaxScalingExp()
Dquantization_util.h178 int* left_shift);
186 int* left_shift);
242 int32_t* quantized_multiplier, int* left_shift);
247 int* left_shift,
/external/tensorflow/tensorflow/core/kernels/
Dcwise_op_left_shift.cc19 REGISTER8(BinaryOp, CPU, "LeftShift", functor::left_shift, int8, int16, int32,
26 BinaryOp<SYCLDevice, functor::left_shift<TYPE>>);
40 REGISTER8(BinaryOp, GPU, "LeftShift", functor::left_shift, int8, int16, int32,
Dcwise_op_gpu_left_shift.cu.cc22 DEFINE_BINARY8(left_shift, int8, int16, int32, int64, uint8, uint16, uint32,
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Dcomparisons.h83 int left_shift = op_params.left_shift; in ComparisonWithScaling() local
96 const int32 shifted_input1_val = input1_val * (1 << left_shift); in ComparisonWithScaling()
97 const int32 shifted_input2_val = input2_val * (1 << left_shift); in ComparisonWithScaling()
167 int left_shift = op_params.left_shift; in BroadcastComparison4DSlowWithScaling() local
183 const int32 shifted_input1_val = input1_val * (1 << left_shift); in BroadcastComparison4DSlowWithScaling()
184 const int32 shifted_input2_val = input2_val * (1 << left_shift); in BroadcastComparison4DSlowWithScaling()
Dadd.h65 const int32 shifted_input1_val = input1_val * (1 << params.left_shift); in AddElementwise()
66 const int32 shifted_input2_val = input2_val * (1 << params.left_shift); in AddElementwise()
97 const int32 shifted_input1_val = input1_val * (1 << params.left_shift); in AddScalarBroadcast()
103 const int32 shifted_input2_val = input2_val * (1 << params.left_shift); in AddScalarBroadcast()
296 input1_val * (1 << params.left_shift); in BroadcastAdd4DSlow()
298 input2_val * (1 << params.left_shift); in BroadcastAdd4DSlow()
/external/tensorflow/tensorflow/lite/micro/kernels/cmsis-nn/
Dadd.cc51 int left_shift; member
68 data->left_shift = 20; in CalculateOpData()
77 ((1 << data->left_shift) * output->params.scale); in CalculateOpData()
124 op_params.left_shift = data->left_shift; in EvalAddQuantized()
152 op_params.left_shift, GetTensorData<int8_t>(output), in EvalAddQuantized()
/external/tensorflow/tensorflow/python/ops/
Dbitwise_ops_test.py109 [bitwise_ops.left_shift(lhs, rhs),
111 self.assertAllEqual(left_shift_result, np.left_shift(lhs, rhs))
123 [bitwise_ops.left_shift(lhs, rhs),
125 self.assertAllEqual(left_shift_result, np.left_shift(lhs, rhs))
140 sess.run([bitwise_ops.left_shift(lhs, rhs),
157 ls_tensor = bitwise_ops.left_shift(lhs, rhs)
/external/tensorflow/tensorflow/lite/micro/kernels/
Dadd.cc51 int left_shift; member
78 data->left_shift = 20; in CalculateOpData()
88 ((1 << data->left_shift) * static_cast<double>(output->params.scale)); in CalculateOpData()
135 op_params.left_shift = data->left_shift; in EvalAddQuantized()
/external/tensorflow/tensorflow/lite/kernels/internal/reference/integer_ops/
Dadd.h40 const int32 shifted_input1_val = input1_val * (1 << params.left_shift); in AddElementwise()
41 const int32 shifted_input2_val = input2_val * (1 << params.left_shift); in AddElementwise()
113 input1_val * (1 << params.left_shift); in BroadcastAdd4DSlow()
115 input2_val * (1 << params.left_shift); in BroadcastAdd4DSlow()
/external/libaom/libaom/av1/common/x86/
Djnt_convolve_sse2.c31 const __m128i left_shift = _mm_cvtsi32_si128(bits); in av1_dist_wtd_convolve_x_sse2() local
70 const __m128i res_lo_shift = _mm_sll_epi32(res_lo_round, left_shift); in av1_dist_wtd_convolve_x_sse2()
125 const __m128i res_lo_shift = _mm_sll_epi32(res_lo_round, left_shift); in av1_dist_wtd_convolve_x_sse2()
126 const __m128i res_hi_shift = _mm_sll_epi32(res_hi_round, left_shift); in av1_dist_wtd_convolve_x_sse2()
165 const __m128i left_shift = _mm_cvtsi32_si128(bits); in av1_dist_wtd_convolve_y_sse2() local
216 res_shift = _mm_sll_epi32(res, left_shift); in av1_dist_wtd_convolve_y_sse2()
245 res_shift = _mm_sll_epi32(res, left_shift); in av1_dist_wtd_convolve_y_sse2()
318 res_lo_shift = _mm_sll_epi32(res_lo, left_shift); in av1_dist_wtd_convolve_y_sse2()
319 res_hi_shift = _mm_sll_epi32(res_hi, left_shift); in av1_dist_wtd_convolve_y_sse2()
348 res_lo_shift = _mm_sll_epi32(res_lo, left_shift); in av1_dist_wtd_convolve_y_sse2()
[all …]
Djnt_convolve_avx2.c201 const int left_shift = FILTER_BITS - conv_params->round_0 + 1; in av1_dist_wtd_convolve_y_avx2() local
278 _mm256_slli_epi32(res_lo_0_32b, left_shift); in av1_dist_wtd_convolve_y_avx2()
284 _mm256_slli_epi32(res_lo_1_32b, left_shift); in av1_dist_wtd_convolve_y_avx2()
336 _mm256_slli_epi32(res_hi_0_32b, left_shift); in av1_dist_wtd_convolve_y_avx2()
342 _mm256_slli_epi32(res_hi_1_32b, left_shift); in av1_dist_wtd_convolve_y_avx2()
457 _mm256_slli_epi32(res_lo_0_32b, left_shift); in av1_dist_wtd_convolve_y_avx2()
463 _mm256_slli_epi32(res_lo_1_32b, left_shift); in av1_dist_wtd_convolve_y_avx2()
515 _mm256_slli_epi32(res_hi_0_32b, left_shift); in av1_dist_wtd_convolve_y_avx2()
521 _mm256_slli_epi32(res_hi_1_32b, left_shift); in av1_dist_wtd_convolve_y_avx2()
820 const __m128i left_shift = _mm_cvtsi32_si128(bits); in av1_dist_wtd_convolve_2d_copy_avx2() local
[all …]
/external/mesa3d/src/compiler/nir/
Dnir_format_convert.h29 nir_shift(nir_builder *b, nir_ssa_def *value, int left_shift) in nir_shift() argument
31 if (left_shift > 0) in nir_shift()
32 return nir_ishl(b, value, nir_imm_int(b, left_shift)); in nir_shift()
33 else if (left_shift < 0) in nir_shift()
34 return nir_ushr(b, value, nir_imm_int(b, -left_shift)); in nir_shift()
41 uint32_t mask, int left_shift) in nir_mask_shift() argument
43 return nir_shift(b, nir_iand(b, src, nir_imm_int(b, mask)), left_shift); in nir_mask_shift()
/external/gemmlowp/internal/
Doutput.h159 left_shift = std::max(0, output_stage.result_exponent);
170 ShiftLeft(input.reg[i], left_shift),
179 int left_shift;
200 auto left_shift =
206 for (int i = 0; i < decltype(left_shift)::kRegisterCount; i++) {
207 left_shift.buf.reg[i] = Max(left_shift.buf.reg[i], 0);
211 BroadcastShiftLeft(input, left_shift), result_fixedpoint_multiplier);
/external/tensorflow/tensorflow/python/keras/utils/
Dconv_utils.py443 left_shift = int(kernel_shape[d] / 2)
444 right_shift = kernel_shape[d] - left_shift
449 center += left_shift
451 start = max(0, center - left_shift)
/external/tensorflow/tensorflow/lite/kernels/
Dadd.cc57 int left_shift; member
101 data->left_shift = 20; in Prepare()
110 ((1 << data->left_shift) * output->params.scale); in Prepare()
226 op_params.left_shift = data->left_shift; in EvalAddQuantized()
Dsub.cc59 int left_shift; member
112 op_params->left_shift = 20; in Prepare8BitSubOp()
122 ((1 << op_params->left_shift) * output_quantization_params.scale); in Prepare8BitSubOp()
275 op_params.left_shift = data->left_shift; in EvalQuantized()
/external/tensorflow/tensorflow/lite/kernels/internal/optimized/integer_ops/
Dadd.h60 const int32x4_t left_shift_dup = vdupq_n_s32(params.left_shift); in AddElementwise()
96 const int32 shifted_input1_val = input1_val * (1 << params.left_shift); in AddElementwise()
97 const int32 shifted_input2_val = input2_val * (1 << params.left_shift); in AddElementwise()
133 const int32x4_t left_shift_dup = vdupq_n_s32(params.left_shift); in AddScalarBroadcast()
192 const int32 shifted_input1_val = input1_val * (1 << params.left_shift); in AddScalarBroadcast()
199 const int32 shifted_input2_val = input2_val * (1 << params.left_shift); in AddScalarBroadcast()
Dmul.h48 const int left_shift = std::max(0, params.output_shift); in MulElementwise() local
50 const int32x4_t left_shift_vec = vdupq_n_s32(left_shift); in MulElementwise()
123 const int left_shift = std::max(0, params.output_shift); in MulSimpleBroadcast() local
125 const int32x4_t left_shift_vec = vdupq_n_s32(left_shift); in MulSimpleBroadcast()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_LeftShift.pbtxt20 left_shift_result = bitwise_ops.left_shift(lhs, rhs)
32 bitwise_ops.left_shift(lhs, rhs)
/external/skqp/src/utils/
DSkUTF.cpp8 static constexpr inline int32_t left_shift(int32_t value, int32_t shift) { in left_shift() function
134 hic = left_shift(hic, 1); in NextUTF8()
147 } while ((hic = left_shift(hic, 1)) < 0); in NextUTF8()
/external/skia/src/utils/
DSkUTF.cpp8 static constexpr inline int32_t left_shift(int32_t value, int32_t shift) { in left_shift() function
134 hic = left_shift(hic, 1); in NextUTF8()
147 } while ((hic = left_shift(hic, 1)) < 0); in NextUTF8()
/external/tensorflow/tensorflow/lite/experimental/ruy/
Dkernel_avx512.cc487 const __m512i left_shift = _mm512_max_epi32(e_vector, zero_vector);
510 accum_data_v0 = _mm512_sllv_epi32(accum_data_v0, left_shift);
535 accum_data_v1 = _mm512_sllv_epi32(accum_data_v1, left_shift);
560 accum_data_v2 = _mm512_sllv_epi32(accum_data_v2, left_shift);
585 accum_data_v3 = _mm512_sllv_epi32(accum_data_v3, left_shift);
610 accum_data_v4 = _mm512_sllv_epi32(accum_data_v4, left_shift);
635 accum_data_v5 = _mm512_sllv_epi32(accum_data_v5, left_shift);
660 accum_data_v6 = _mm512_sllv_epi32(accum_data_v6, left_shift);
685 accum_data_v7 = _mm512_sllv_epi32(accum_data_v7, left_shift);
710 accum_data_v8 = _mm512_sllv_epi32(accum_data_v8, left_shift);
[all …]
/external/tensorflow/tensorflow/core/api_def/python_api/
Dapi_def_LeftShift.pbtxt4 name: "bitwise.left_shift"

1234