Home
last modified time | relevance | path

Searched refs:max_shift (Results 1 – 18 of 18) sorted by relevance

/external/pytorch/aten/src/ATen/native/cuda/
DBinaryShiftOpsKernels.cu18 constexpr scalar_t max_shift = sizeof(scalar_t) * CHAR_BIT; in lshift_kernel_cuda()
19 if ((static_cast<std::make_signed_t<scalar_t>>(b) < 0) || (b >= max_shift)) { in lshift_kernel_cuda()
32 constexpr scalar_t max_shift = sizeof(scalar_t) * CHAR_BIT - std::is_signed_v<scalar_t>; in rshift_kernel_cuda()
33 if ((static_cast<std::make_signed_t<scalar_t>>(b) < 0) || (b >= max_shift)) { in rshift_kernel_cuda()
34 return a >> max_shift; in rshift_kernel_cuda()
/external/libxaac/decoder/
Dixheaacd_imdct.c353 WORD32 max_shift; in ixheaacd_fd_imdct_short() local
372 max_shift = ixheaacd_calc_max_spectralline(p_in_ibuffer, ixheaacd_drc_offset->n_long); in ixheaacd_fd_imdct_short()
373 ixheaacd_normalize(p_in_ibuffer, max_shift, ixheaacd_drc_offset->n_long); in ixheaacd_fd_imdct_short()
374 shiftp = max_shift + 6; in ixheaacd_fd_imdct_short()
390 max_shift = in ixheaacd_fd_imdct_short()
392 ixheaacd_normalize(p_in_ibuffer, max_shift - 1, ixheaacd_drc_offset->n_long); in ixheaacd_fd_imdct_short()
393 shiftp += max_shift - 1; in ixheaacd_fd_imdct_short()
493 WORD32 max_shift; in ixheaacd_fd_imdct_long() local
512 max_shift = in ixheaacd_fd_imdct_long()
514 ixheaacd_normalize(p_in_ibuffer, max_shift, ixheaacd_drc_offset->n_long); in ixheaacd_fd_imdct_long()
[all …]
Dixheaacd_env_calc.c1164 WORD16 max_shift; in ixheaacd_expsubbandsamples_dec() local
1187 max_shift = ixheaac_pnorm32(max_abs); in ixheaacd_expsubbandsamples_dec()
1203 max_shift = ixheaac_pnorm32(max_abs); in ixheaacd_expsubbandsamples_dec()
1206 return max_shift; in ixheaacd_expsubbandsamples_dec()
/external/libgav1/src/dsp/x86/
Dintrapred_directional_sse4.cc92 const __m128i max_shift = _mm_set1_epi8(32); in DirectionalZone1_4xH() local
122 const __m128i opposite_shift = _mm_sub_epi8(max_shift, shift); in DirectionalZone1_4xH()
159 const __m128i max_shift = _mm_set1_epi8(32); in DirectionalZone1_Large() local
183 const __m128i opposite_shift = _mm_sub_epi8(max_shift, shift); in DirectionalZone1_Large()
212 const __m128i opposite_shift = _mm_sub_epi8(max_shift, shift); in DirectionalZone1_Large()
271 const __m128i max_shift = _mm_set1_epi8(32); in DirectionalZone1_SSE4_1() local
286 const __m128i opposite_shift = _mm_sub_epi8(max_shift, shift); in DirectionalZone1_SSE4_1()
329 const __m128i opposite_shift = _mm_sub_epi8(max_shift, shift); in DirectionalZone1_SSE4_1()
388 const __m128i max_shift = _mm_set1_epi8(32); in DirectionalZone3_4x4() local
397 const __m128i opposite_shift = _mm_sub_epi8(max_shift, shift); in DirectionalZone3_4x4()
[all …]
/external/mesa3d/src/asahi/compiler/
Dagx_nir_lower_address.c58 unsigned max_shift = format_shift + (shift_must_match ? 0 : 2); in pass() local
64 if (shift >= format_shift && shift <= max_shift) { in pass()
82 uint32_t shift = MIN2(__builtin_ctz(raw_scalar), max_shift); in pass()
/external/walt/pywalt/pywalt/
Dminimization.py45 def minimize_lsq(tx, x, ty, y, tl, min_shift, max_shift, step): argument
52 shifts = numpy.arange(min_shift, max_shift, step)
/external/mesa3d/src/imagination/vulkan/
Dpvr_transfer_frag_store.c103 uint32_t max_shift = 0U; in pvr_transfer_frag_shader_key() local
106 max_shift += (num); \ in pvr_transfer_frag_shader_key()
107 assert(max_shift <= 32U); \ in pvr_transfer_frag_shader_key()
/external/mesa3d/src/intel/common/tests/
Dmi_builder_test.cpp1087 const unsigned max_shift = 64; in TEST_F() local
1089 for (unsigned i = 0; i <= max_shift; i++) in TEST_F()
1094 for (unsigned i = 0; i <= max_shift; i++) { in TEST_F()
1133 const unsigned max_shift = 64; in TEST_F() local
1135 for (unsigned i = 0; i <= max_shift; i++) in TEST_F()
1140 for (unsigned i = 0; i <= max_shift; i++) { in TEST_F()
1189 const unsigned max_shift = 64; in TEST_F() local
1191 for (unsigned i = 0; i <= max_shift; i++) in TEST_F()
1196 for (unsigned i = 0; i <= max_shift; i++) { in TEST_F()
1207 const unsigned max_shift = 64; in TEST_F() local
[all …]
/external/tensorflow/tensorflow/core/kernels/mlir_generated/
Dbase_ops_test.h218 auto max_shift = sizeof(T) * 8 - 1; in DefaultInputLessThanBitwidth() local
220 for (auto i = 0; i < max_shift; ++i) v.push_back(i); in DefaultInputLessThanBitwidth()
/external/executorch/kernels/optimized/vec/
Dvec_base.h632 constexpr T max_shift = sizeof(T) * CHAR_BIT; variable
636 if ((static_cast<std::make_signed_t<T>>(shift) < 0) || (shift >= max_shift)) {
647 constexpr T max_shift = sizeof(T) * CHAR_BIT - std::is_signed_v<T>; variable
651 if ((static_cast<std::make_signed_t<T>>(shift) < 0) || (shift >= max_shift)) {
652 c[i] = a[i] >> max_shift;
/external/pytorch/aten/src/ATen/native/cpu/
DBinaryOpsKernel.cpp427 constexpr scalar_t max_shift = sizeof(scalar_t) * CHAR_BIT; in lshift_kernel() local
429 (b >= max_shift)) { in lshift_kernel()
500 constexpr scalar_t max_shift = in rshift_kernel() local
503 (b >= max_shift)) { in rshift_kernel()
504 return a >> max_shift; in rshift_kernel()
/external/pytorch/aten/src/ATen/cpu/vec/
Dvec_base.h874 constexpr T max_shift = sizeof(T) * CHAR_BIT; variable
878 if ((static_cast<std::make_signed_t<T>>(shift) < 0) || (shift >= max_shift)) {
889 constexpr T max_shift = sizeof(T) * CHAR_BIT - std::is_signed_v<T>; variable
893 if ((static_cast<std::make_signed_t<T>>(shift) < 0) || (shift >= max_shift)) {
894 c[i] = a[i] >> max_shift;
/external/mesa3d/src/compiler/nir/
Dnir_lower_subgroups.c162 nir_const_value max_shift[4]; in build_ballot_imm_ishl() local
164 max_shift[i] = nir_const_value_for_int((i + 1) * options->ballot_bit_size, 32); in build_ballot_imm_ishl()
165 nir_def *max_shift_val = nir_build_imm(b, options->ballot_components, 32, max_shift); in build_ballot_imm_ishl()
/external/executorch/kernels/optimized/vec/vec256/
Dvec256_int.h1500 __m256i max_shift = _mm256_set1_epi64x(64); variable
1501 __m256i mask = _mm256_or_si256(_mm256_cmpgt_epi64(zero, b), _mm256_cmpgt_epi64(b, max_shift));
1502 __m256i shift = _mm256_blendv_epi8(b, max_shift, mask);
1507 __m256i sign_shift = _mm256_sub_epi64(max_shift, shift);
/external/pytorch/aten/src/ATen/cpu/vec/vec256/
Dvec256_int.h1549 __m256i max_shift = _mm256_set1_epi64x(64); variable
1550 __m256i mask = _mm256_or_si256(_mm256_cmpgt_epi64(zero, b), _mm256_cmpgt_epi64(b, max_shift));
1551 __m256i shift = _mm256_blendv_epi8(b, max_shift, mask);
1556 __m256i sign_shift = _mm256_sub_epi64(max_shift, shift);
/external/pytorch/aten/src/ATen/cpu/vec/vec256/zarch/
Dvec256_zarch.h1395 …constexpr Vectorized<typex>::ElementType max_shift
1407 …if ((static_cast<std::make_signed_t<typex>>(shift) < 0) || (shift >= max_shift)) { …
1420 …constexpr Vectorized<typex>::ElementType max_shift
1432 …if ((static_cast<std::make_signed_t<typex>>(shift) < 0) || (shift >= max_shift)) { …
1433 …c_array[i] = a_array[i] >> max_shift; …
/external/libopus/src/
Dopus_encoder.c957 int max_shift; in compute_frame_energy() local
966 max_shift = celt_ilog2(len); in compute_frame_energy()
967 shift = IMAX(0, (celt_ilog2(1+sample_max) << 1) + max_shift - 28); in compute_frame_energy()
/external/tensorflow/tensorflow/compiler/tests/
Drandomized_tests.cc3087 int max_shift = is64 ? 63 : 31; in TEST_F() local
3088 auto y = RandomBoundedTensor(type, 0, max_shift, false, dims); in TEST_F()
3970 int max_shift = is64 ? 63 : 31; in TEST_F() local
3971 auto y = RandomBoundedTensor(type, 0, max_shift, false, dims); in TEST_F()