Home
last modified time | relevance | path

Searched refs:nentries (Results 1 – 25 of 35) sorted by relevance

12

/third_party/python/Python/
Dhashtable.c126 size += ht->nentries * sizeof(_Py_hashtable_entry_t); in _Py_hashtable_size()
195 ht->nentries--; in _Py_hashtable_steal()
200 if ((float)ht->nentries / (float)ht->nbuckets < HASHTABLE_LOW) { in _Py_hashtable_steal()
232 ht->nentries++; in _Py_hashtable_set()
233 if ((float)ht->nentries / (float)ht->nbuckets > HASHTABLE_HIGH) { in _Py_hashtable_set()
235 ht->nentries--; in _Py_hashtable_set()
282 size_t new_size = round_size((size_t)(ht->nentries * HASHTABLE_REHASH_FACTOR)); in hashtable_rehash()
337 ht->nentries = 0; in _Py_hashtable_new_full()
396 ht->nentries = 0; in _Py_hashtable_clear()
Dmarshal.c315 size_t s = p->hashtable->nentries; in w_ref()
/third_party/ffmpeg/libavcodec/
Dvorbisenc.c47 int nentries; member
156 av_assert2(entry < cb->nentries); in put_codeword()
177 ff_vorbis_len2vlc(cb->lens, cb->codewords, cb->nentries); in ready_codebook()
182 int vals = cb_lookup_vals(cb->lookup, cb->ndimensions, cb->nentries); in ready_codebook()
183 cb->dimensions = av_malloc_array(cb->nentries, sizeof(float) * cb->ndimensions); in ready_codebook()
184 cb->pow2 = av_mallocz_array(cb->nentries, sizeof(float)); in ready_codebook()
187 for (i = 0; i < cb->nentries; i++) { in ready_codebook()
229 for (j = 0; j < cb->nentries; j++) { in ready_residue()
293 cb->nentries = cvectors[book].real_len; in create_vorbis_context()
299 cb->lens = av_malloc_array(cb->nentries, sizeof(uint8_t)); in create_vorbis_context()
[all …]
/third_party/elfutils/src/
Dnm.c1255 size_t nentries = size / (entsize ?: 1); in show_symbols() local
1329 if (nentries > SIZE_MAX / sizeof (GElf_SymX)) in show_symbols()
1331 fullname, nentries, elf_ndxscn (scn), in show_symbols()
1334 if (nentries * sizeof (GElf_SymX) < MAX_STACK_ALLOC) in show_symbols()
1335 sym_mem = (GElf_SymX *) alloca (nentries * sizeof (GElf_SymX)); in show_symbols()
1337 sym_mem = xmalloc (nentries * sizeof (GElf_SymX)); in show_symbols()
1347 for (size_t cnt = 0; cnt < nentries; ++cnt) in show_symbols()
1471 size_t nentries_orig = nentries; in show_symbols()
1472 nentries = nentries_used; in show_symbols()
1479 qsort (sym_mem, nentries, sizeof (GElf_SymX), sort_by_name); in show_symbols()
[all …]
Dobjdump.c405 int nentries = shdr->sh_size / sh_entsize; in show_relocs_rel() local
407 for (int cnt = 0; cnt < nentries; ++cnt) in show_relocs_rel()
426 int nentries = shdr->sh_size / sh_entsize; in show_relocs_rela() local
428 for (int cnt = 0; cnt < nentries; ++cnt) in show_relocs_rela()
Delflint.c2428 uint32_t nentries = sym_shdr->sh_size / sym_shdr->sh_entsize; in compare_hash_gnu_hash() local
2429 char *used = alloca (nentries); in compare_hash_gnu_hash()
2430 memset (used, '\0', nentries); in compare_hash_gnu_hash()
2467 if (symidx >= max_nsyms || symidx + gnu_symbias >= nentries) in compare_hash_gnu_hash()
2471 gnu_hash_idx, gnu_hash_name, symidx, max_nsyms, nentries); in compare_hash_gnu_hash()
2510 while (symidx != STN_UNDEF && symidx < nentries && symidx < nchain) in compare_hash_gnu_hash()
2547 while (symidx != STN_UNDEF && symidx < nentries && symidx < nchain) in compare_hash_gnu_hash()
2573 for (uint32_t cnt = 1; cnt < nentries; ++cnt) in compare_hash_gnu_hash()
Dreadelf.c2050 int nentries = shdr->sh_size / sh_entsize; in handle_relocs_rel() local
2091 nentries), in handle_relocs_rel()
2097 nentries); in handle_relocs_rel()
2106 nentries), in handle_relocs_rel()
2110 nentries); in handle_relocs_rel()
2119 for (int cnt = 0; cnt < nentries; ++cnt) in handle_relocs_rel()
2239 int nentries = shdr->sh_size / sh_entsize; in handle_relocs_rela() local
2280 nentries), in handle_relocs_rela()
2286 nentries); in handle_relocs_rela()
2295 nentries), in handle_relocs_rela()
[all …]
/third_party/python/Modules/
D_testinternalcapi.c183 assert(table->nentries == 0); in test_hashtable()
196 assert(table->nentries == 26); in test_hashtable()
197 assert(table->nbuckets > table->nentries); in test_hashtable()
217 assert(table->nentries == 25); in test_hashtable()
228 assert(table->nentries == 0); in test_hashtable()
/third_party/libuv/test/
Dtest-fs-readdir.c83 dir->nentries = ARRAY_SIZE(dirents); in empty_opendir_cb()
128 dir->nentries = ARRAY_SIZE(dirents); in TEST_IMPL()
314 dir->nentries = ARRAY_SIZE(dirents); in non_empty_readdir_cb()
333 dir->nentries = ARRAY_SIZE(dirents); in non_empty_opendir_cb()
408 dir->nentries = ARRAY_SIZE(dirents); in TEST_IMPL()
/third_party/libwebsockets/lib/misc/
Dlws-struct-sqlite.c244 int n, m, pk = 0, nentries = (int)(ssize_t)schema->child_map_size, nef = 0, did; in _lws_struct_sq3_ser_one() local
261 for (n = 0; n < nentries; n++) { in _lws_struct_sq3_ser_one()
277 for (n = 0; n < nentries; n++) { in _lws_struct_sq3_ser_one()
339 for (n = 0; n < nentries; n++) { in _lws_struct_sq3_ser_one()
357 for (n = 0; n < nentries; n++) { in _lws_struct_sq3_ser_one()
/third_party/flutter/skia/third_party/externals/libpng/
Dpngset.c1063 png_inforp info_ptr, png_const_sPLT_tp entries, int nentries) in png_set_sPLT() argument
1075 if (png_ptr == NULL || info_ptr == NULL || nentries <= 0 || entries == NULL) in png_set_sPLT()
1082 info_ptr->splt_palettes, info_ptr->splt_palettes_num, nentries, in png_set_sPLT()
1130 entries->nentries, sizeof (png_sPLT_entry))); in png_set_sPLT()
1139 np->nentries = entries->nentries; in png_set_sPLT()
1144 (unsigned int)entries->nentries * sizeof (png_sPLT_entry)); in png_set_sPLT()
1154 while (--nentries); in png_set_sPLT()
1156 if (nentries > 0) in png_set_sPLT()
Dpngwutil.c1185 size_t palette_size = entry_size * (size_t)spalette->nentries; in png_write_sPLT()
1208 for (ep = spalette->entries; ep<spalette->entries + spalette->nentries; ep++) in png_write_sPLT()
1232 for (i = 0; i>spalette->nentries; i++) in png_write_sPLT()
Dpngrutil.c1746 new_palette.nentries = (png_int_32)(data_length / (unsigned int)entry_size); in png_handle_sPLT()
1749 (png_alloc_size_t) new_palette.nentries * (sizeof (png_sPLT_entry))); in png_handle_sPLT()
1758 for (i = 0; i < new_palette.nentries; i++) in png_handle_sPLT()
1783 for (i = 0; i < new_palette.nentries; i++) in png_handle_sPLT()
Dpng.h538 png_int_32 nentries; /* number of palette entries */ member
2108 png_inforp info_ptr, png_const_sPLT_tp entries, int nentries));
/third_party/skia/third_party/externals/libpng/
Dpngset.c1063 png_inforp info_ptr, png_const_sPLT_tp entries, int nentries) in png_set_sPLT() argument
1075 if (png_ptr == NULL || info_ptr == NULL || nentries <= 0 || entries == NULL) in png_set_sPLT()
1082 info_ptr->splt_palettes, info_ptr->splt_palettes_num, nentries, in png_set_sPLT()
1130 entries->nentries, sizeof (png_sPLT_entry))); in png_set_sPLT()
1139 np->nentries = entries->nentries; in png_set_sPLT()
1144 (unsigned int)entries->nentries * sizeof (png_sPLT_entry)); in png_set_sPLT()
1154 while (--nentries); in png_set_sPLT()
1156 if (nentries > 0) in png_set_sPLT()
Dpngwutil.c1185 size_t palette_size = entry_size * (size_t)spalette->nentries; in png_write_sPLT()
1208 for (ep = spalette->entries; ep<spalette->entries + spalette->nentries; ep++) in png_write_sPLT()
1232 for (i = 0; i>spalette->nentries; i++) in png_write_sPLT()
Dpngrutil.c1746 new_palette.nentries = (png_int_32)(data_length / (unsigned int)entry_size); in png_handle_sPLT()
1749 (png_alloc_size_t) new_palette.nentries * (sizeof (png_sPLT_entry))); in png_handle_sPLT()
1758 for (i = 0; i < new_palette.nentries; i++) in png_handle_sPLT()
1783 for (i = 0; i < new_palette.nentries; i++) in png_handle_sPLT()
Dpng.h538 png_int_32 nentries; /* number of palette entries */ member
2108 png_inforp info_ptr, png_const_sPLT_tp entries, int nentries));
/third_party/python/Include/internal/
Dpycore_hashtable.h61 size_t nentries; // Total number of entries in the table member
/third_party/node/src/
Dnode_dir.cc62 dir_->nentries = 0; in DirHandle()
251 dir->dir_->nentries = buffer_size; in Read()
/third_party/gstreamer/gstplugins_good/gst/matroska/
Dmatroska-read-common.c1629 GstEbmlRead * ebml, guint * nentries) in gst_matroska_read_common_parse_index_cuetrack() argument
1746 (*nentries)++; in gst_matroska_read_common_parse_index_cuetrack()
1762 guint nentries = 0; in gst_matroska_read_common_parse_index_pointentry() local
1791 &nentries); in gst_matroska_read_common_parse_index_pointentry()
1804 if (nentries > 0) { in gst_matroska_read_common_parse_index_pointentry()
1807 g_array_remove_range (common->index, common->index->len - nentries, in gst_matroska_read_common_parse_index_pointentry()
1808 nentries); in gst_matroska_read_common_parse_index_pointentry()
1812 for (i = common->index->len - nentries; i < common->index->len; i++) { in gst_matroska_read_common_parse_index_pointentry()
/third_party/libuv/docs/src/
Dfs.rst153 `uv_dirent_t`s used to hold results. `nentries` is the user provided maximum
160 size_t nentries;
287 must set `dir->dirents` and `dir->nentries`, representing the array of
/third_party/python/Tools/gdb/
Dlibpython.py689 entries, nentries = self._get_entries(keys)
690 for i in safe_range(nentries):
/third_party/libuv/src/win/
Dfs.c1646 memset(dirents, 0, dir->nentries * sizeof(*dir->dirents)); in fs__readdir()
1650 while (dirent_idx < dir->nentries) { in fs__readdir()
/third_party/libuv/include/uv_ndk/
Duv.h1309 size_t nentries; member

12