Home
last modified time | relevance | path

Searched refs:b_size (Results 1 – 25 of 50) sorted by relevance

12

/third_party/python/Python/
Dsuggestions.c39 const char *b, size_t b_size, in levenshtein_distance() argument
50 while (a_size && b_size && a[0] == b[0]) { in levenshtein_distance()
52 b++; b_size--; in levenshtein_distance()
54 while (a_size && b_size && a[a_size-1] == b[b_size-1]) { in levenshtein_distance()
56 b_size--; in levenshtein_distance()
58 if (a_size == 0 || b_size == 0) { in levenshtein_distance()
59 return (a_size + b_size) * MOVE_COST; in levenshtein_distance()
61 if (a_size > MAX_STRING_SIZE || b_size > MAX_STRING_SIZE) { in levenshtein_distance()
66 if (b_size < a_size) { in levenshtein_distance()
68 size_t t_size = a_size; a_size = b_size; b_size = t_size; in levenshtein_distance()
[all …]
/third_party/pixman/pixman/
Dpixman-utils.c141 int a_size, r_size, g_size, b_size; in pixman_expand_to_float() local
157 b_size = PIXMAN_FORMAT_B (format); in pixman_expand_to_float()
162 b_shift = 8 - b_size; in pixman_expand_to_float()
167 b_mask = ((1 << b_size) - 1); in pixman_expand_to_float()
172 b_mul = multipliers[b_size]; in pixman_expand_to_float()
Dpixman-bits-image.c1142 int b_size = PIXMAN_FORMAT_B (format); in dither_apply_ordered() local
1147 float b_scale = dither_compute_scale (b_size); in dither_apply_ordered()
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/nn/
Dbias_add_gpu_kernel.h147 size_t x_size, b_size; in InitSizeLists() local
150 CHECK_CUDNN_RET_WITH_EXCEPT(kernel_node_, cudnnGetTensorSizeInBytes(b_desc_, &b_size), in InitSizeLists()
153 input_size_list_.push_back(b_size); in InitSizeLists()
/third_party/mindspore/mindspore/ccsrc/minddata/dataset/util/
Dbuddy.cc278 size_t b_size = BitLeftShift(1, i); in TrimBuddySeg() local
279 size_t half_sz = BitRightShift(b_size, 1); in TrimBuddySeg()
299 size_t b_size = BitLeftShift(1, i); in UnTrimBuddySeg() local
300 size_t half_sz = BitRightShift(b_size, 1); in UnTrimBuddySeg()
/third_party/mesa3d/src/compiler/nir/
Dnir_opt_large_constants.c51 uint32_t b_size = b->constant_data_size; in var_info_cmp() local
55 } else if (a_size < b_size) { in var_info_cmp()
57 } else if (a_size > b_size) { in var_info_cmp()
/third_party/boost/libs/intrusive/test/
Dcontainer_size_test.cpp42 static const std::size_t b_size = sizeof(B); member
43 static const bool a_b_sizes_equal = a_size == b_size;
/third_party/python/Modules/_ctypes/
D_ctypes.c445 if ((size_t)self->b_size > sizeof(void*)) { in StructUnionType_paramfunc()
446 ptr = PyMem_Malloc(self->b_size); in StructUnionType_paramfunc()
450 memcpy(ptr, self->b_ptr, self->b_size); in StructUnionType_paramfunc()
480 parg->size = self->b_size; in StructUnionType_paramfunc()
1285 if (size > self->b_size) { in CharArray_set_raw()
1303 return PyBytes_FromStringAndSize(self->b_ptr, self->b_size); in CharArray_get_raw()
1311 for (i = 0; i < self->b_size; ++i) in CharArray_get_value()
1337 if (size > self->b_size) { in CharArray_set_value()
1346 if (size < self->b_size) in CharArray_set_value()
1366 for (i = 0; i < self->b_size/(Py_ssize_t)sizeof(wchar_t); ++i) in WCharArray_get_value()
[all …]
Dctypes.h49 Py_ssize_t b_size; /* size of memory block in bytes */ member
79 Py_ssize_t b_size; /* size of memory block in bytes */ member
Dcallproc.c1667 return PyLong_FromSsize_t(((CDataObject *)obj)->b_size); in sizeof_func()
1826 obj->b_size = size; in resize()
1835 memmove(ptr, obj->b_ptr, obj->b_size); in resize()
1837 obj->b_size = size; in resize()
1843 obj->b_size = size; in resize()
/third_party/curl/lib/
Dftplistparser.c369 parser->file_data->info.b_size = FTP_BUFFER_ALLOCSIZE; in Curl_ftp_parselist()
378 if(finfo->b_used >= finfo->b_size - 1) { in Curl_ftp_parselist()
381 finfo->b_size + FTP_BUFFER_ALLOCSIZE); in Curl_ftp_parselist()
383 finfo->b_size += FTP_BUFFER_ALLOCSIZE; in Curl_ftp_parselist()
/third_party/e2fsprogs/e2fsck/
Djfs_user.h49 int b_size; member
Drecovery.c398 *crc32_sum = crc32_be(*crc32_sum, (void *)bh->b_data, bh->b_size); in calc_chksums()
410 obh->b_size); in calc_chksums()
Drevoke.c469 bh2 = __find_get_block(bh->b_bdev, bh->b_blocknr, bh->b_size); in jbd2_journal_cancel_revoke()
/third_party/python/Objects/
Dlongobject.c3710 Py_ssize_t a_size, b_size, shift, extra_bits, diff, x_size, x_bits; in long_true_divide() local
3808 b_size = Py_ABS(Py_SIZE(b)); in long_true_divide()
3810 if (b_size == 0) { in long_true_divide()
3825 b_is_small = b_size <= MANT_DIG_DIGITS || in long_true_divide()
3826 (b_size == MANT_DIG_DIGITS+1 && in long_true_divide()
3833 db = b->ob_digit[--b_size]; in long_true_divide()
3834 while (b_size > 0) in long_true_divide()
3835 db = db * PyLong_BASE + b->ob_digit[--b_size]; in long_true_divide()
3841 diff = a_size - b_size; in long_true_divide()
3850 bit_length_digit(b->ob_digit[b_size - 1]); in long_true_divide()
[all …]
Dtypeobject.c2219 size_t b_size = base->tp_basicsize; in extra_ivars() local
2221 assert(t_size >= b_size); /* Else type smaller than base! */ in extra_ivars()
2224 return t_size != b_size || in extra_ivars()
2236 return t_size != b_size; in extra_ivars()
/third_party/e2fsprogs/debugfs/
Djournal.c146 bh->b_size = blocksize; in getblk()
938 csum32 = jbd2_chksum(j, csum32, bh->b_data, bh->b_size); in jbd2_block_tag_csum_set()
Ddo_journal.c114 cbh->b_size); in journal_commit_trans()
/third_party/ltp/tools/sparse/sparse-src/
Dflow.c418 unsigned int b_size = b->size; in overlapping_memop() local
422 if (b_size + b_start <= a_start) in overlapping_memop()
/third_party/mesa3d/src/amd/compiler/
Daco_insert_NOPs.cpp201 regs_intersect(PhysReg a_reg, unsigned a_size, PhysReg b_reg, unsigned b_size) in regs_intersect() argument
203 return a_reg > b_reg ? (a_reg - b_reg < b_size) : (b_reg - a_reg < a_size); in regs_intersect()
/third_party/grpc/src/core/lib/iomgr/
Dev_epollex_linux.cc1518 const size_t b_size = b->fd_count + b->pollset_count; local
1519 if (b_size > a_size) {
/third_party/flatbuffers/include/flatbuffers/
Dflatbuffers.h623 const char *b_data, uoffset_t b_size) {
624 const auto cmp = memcmp(a_data, b_data, (std::min)(a_size, b_size));
625 return cmp == 0 ? a_size < b_size : cmp < 0;
/third_party/python/Lib/test/
Dtest_pydoc.py793 b_size = A.a_size variable in PydocDocTest.test_method_aliases.B
/third_party/curl/include/curl/
Dcurl.h319 size_t b_size; member
/third_party/mesa3d/src/amd/llvm/
Dac_llvm_build.c607 unsigned b_size = ac_get_llvm_num_components(b); in ac_build_concat() local
609 LLVMValueRef *elems = alloca((a_size + b_size) * sizeof(LLVMValueRef)); in ac_build_concat()
612 for (unsigned i = 0; i < b_size; i++) in ac_build_concat()
615 return ac_build_gather_values(ctx, elems, a_size + b_size); in ac_build_concat()

12