Home
last modified time | relevance | path

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

123

/external/libaom/libaom/aom_dsp/x86/
Dsad_highbd_avx2.c220 const int left_shift = 2; in aom_highbd_sad32x16_avx2() local
225 srcp += src_stride << left_shift; in aom_highbd_sad32x16_avx2()
226 refp += ref_stride << left_shift; in aom_highbd_sad32x16_avx2()
343 const int left_shift = 1; in aom_highbd_sad64x32_avx2() local
348 srcp += src_stride << left_shift; in aom_highbd_sad64x32_avx2()
349 refp += ref_stride << left_shift; in aom_highbd_sad64x32_avx2()
544 const int left_shift = 3; in aom_highbd_sad16x16_avg_avx2() local
547 src += src_stride << left_shift; in aom_highbd_sad16x16_avg_avx2()
548 ref += ref_stride << left_shift; in aom_highbd_sad16x16_avg_avx2()
549 second_pred += 16 << left_shift; in aom_highbd_sad16x16_avg_avx2()
[all …]
/external/tensorflow/tensorflow/lite/kernels/internal/
Dquantization_util.cc80 int* left_shift) { in QuantizeMultiplierGreaterThanOne() argument
82 QuantizeMultiplier(double_multiplier, quantized_multiplier, left_shift); in QuantizeMultiplierGreaterThanOne()
83 TFLITE_CHECK_GE(*left_shift, 0); in QuantizeMultiplierGreaterThanOne()
88 int* left_shift) { in QuantizeMultiplierSmallerThanOneExp() argument
94 *left_shift = shift; in QuantizeMultiplierSmallerThanOneExp()
256 int32_t* quantized_multiplier, int* left_shift) { in PreprocessSoftmaxScaling() argument
282 quantized_multiplier, left_shift); in PreprocessSoftmaxScaling()
288 int* left_shift, in PreprocessLogSoftmaxScalingExp() argument
292 quantized_multiplier, left_shift); in PreprocessLogSoftmaxScalingExp()
296 (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,
Dcommon.h91 int32 x, int32 quantized_multiplier, int left_shift) { in MultiplyByQuantizedMultiplierSmallerThanOneExp() argument
95 SaturatingRoundingDoublingHighMul(x, quantized_multiplier), -left_shift); in MultiplyByQuantizedMultiplierSmallerThanOneExp()
99 int32 x, int32 quantized_multiplier, int left_shift) { in MultiplyByQuantizedMultiplierGreaterThanOne() argument
101 return SaturatingRoundingDoublingHighMul(x * (1 << left_shift), in MultiplyByQuantizedMultiplierGreaterThanOne()
109 int left_shift = shift > 0 ? shift : 0; in MultiplyByQuantizedMultiplier() local
112 x * (1 << left_shift), quantized_multiplier), in MultiplyByQuantizedMultiplier()
/external/tensorflow/tensorflow/contrib/lite/kernels/internal/
Dcommon.h93 int32 x, int32 quantized_multiplier, int left_shift) { in MultiplyByQuantizedMultiplierSmallerThanOneExp() argument
97 SaturatingRoundingDoublingHighMul(x, quantized_multiplier), -left_shift); in MultiplyByQuantizedMultiplierSmallerThanOneExp()
101 int32 x, int32 quantized_multiplier, int left_shift) { in MultiplyByQuantizedMultiplierGreaterThanOne() argument
103 return SaturatingRoundingDoublingHighMul(x * (1 << left_shift), in MultiplyByQuantizedMultiplierGreaterThanOne()
111 int left_shift = shift > 0 ? shift : 0; in MultiplyByQuantizedMultiplier() local
114 x * (1 << left_shift), quantized_multiplier), in MultiplyByQuantizedMultiplier()
/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/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/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()
114 input1_val * (1 << params.left_shift); in BroadcastAdd4DSlow()
116 input2_val * (1 << params.left_shift); in BroadcastAdd4DSlow()
/external/tensorflow/tensorflow/python/keras/utils/
Dconv_utils.py352 left_shift = int(kernel_shape[d] / 2)
353 right_shift = kernel_shape[d] - left_shift
358 center += left_shift
360 start = max(0, center - left_shift)
/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 …]
Dconvolve_2d_sse2.c375 const __m128i left_shift = _mm_cvtsi32_si128(bits); in av1_dist_wtd_convolve_2d_copy_sse2() local
402 const __m128i res_lo = _mm_sll_epi16(d16_lo, left_shift); in av1_dist_wtd_convolve_2d_copy_sse2()
405 const __m128i res_hi = _mm_sll_epi16(d16_hi, left_shift); in av1_dist_wtd_convolve_2d_copy_sse2()
444 const __m128i res = _mm_sll_epi16(d16_0, left_shift); in av1_dist_wtd_convolve_2d_copy_sse2()
Dhighbd_convolve_2d_sse4.c38 const __m128i left_shift = _mm_cvtsi32_si128(bits); in av1_highbd_dist_wtd_convolve_2d_copy_sse4_1() local
66 const __m128i res = _mm_sll_epi16(src_16bit, left_shift); in av1_highbd_dist_wtd_convolve_2d_copy_sse4_1()
118 const __m128i res = _mm_sll_epi16(src_10, left_shift); in av1_highbd_dist_wtd_convolve_2d_copy_sse4_1()
/external/tensorflow/tensorflow/lite/kernels/
Dadd.cc56 int left_shift; member
101 data->left_shift = 20; in Prepare()
110 ((1 << data->left_shift) * output->params.scale); in Prepare()
230 op_params.left_shift = data->left_shift; in EvalAddQuantized()
Dsub.cc57 int left_shift; member
110 op_params->left_shift = 20; in Prepare8BitSubOp()
120 ((1 << op_params->left_shift) * output_quantization_params.scale); in Prepare8BitSubOp()
278 op_params.left_shift = data->left_shift; in EvalQuantized()
Dcomparisons.cc70 const int left_shift = 8; \
82 op_params.left_shift = left_shift; \
/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/core/api_def/python_api/
Dapi_def_LeftShift.pbtxt4 name: "bitwise.left_shift"
/external/tensorflow/tensorflow/lite/kernels/internal/reference/
Dlegacy_reference_ops.h899 inline void Comparison(int left_shift, const T* input1_data, in Comparison() argument
907 op_params.left_shift = left_shift; in Comparison()
937 inline void BroadcastComparison(int left_shift, const T* input1_data, in BroadcastComparison() argument
946 op_params.left_shift = left_shift; in BroadcastComparison()
973 int left_shift, const T* input1_data, const Dims<4>& input1_dims, \
979 Comparison<T, name##Fn>(left_shift, input1_data, input1_dims, \
996 int left_shift, const T* input1_data, const Dims<4>& input1_dims, \
1002 BroadcastComparison<T, name##Fn>(left_shift, input1_data, input1_dims, \
1165 inline void Add(int left_shift, const uint8* input1_data, in Add() argument
1186 op_params.left_shift = left_shift; in Add()
[all …]
Ddepthwiseconv_uint8.h81 const int left_shift = shift > 0 ? shift : 0; variable
84 return (SaturatingRoundingDoublingHighMul(x * (1 << left_shift),
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.bitwise.pbtxt20 name: "left_shift"
/external/tensorflow/tensorflow/tools/api/golden/v2/
Dtensorflow.bitwise.pbtxt20 name: "left_shift"
/external/gemmlowp/internal/
Doutput.h158 left_shift = std::max(0, output_stage.result_exponent);
169 ShiftLeft(input.reg[i], left_shift),
178 int left_shift;

123