Home
last modified time | relevance | path

Searched refs:nbuckets (Results 1 – 24 of 24) sorted by relevance

/external/python/cpython3/Python/
Dhashtable.c124 size += ht->nbuckets * sizeof(_Py_hashtable_entry_t *); in _Py_hashtable_size()
135 size_t index = key_hash & (ht->nbuckets - 1); in _Py_hashtable_get_entry_generic()
157 size_t index = key_hash & (ht->nbuckets - 1); in _Py_hashtable_get_entry_ptr()
177 size_t index = key_hash & (ht->nbuckets - 1); in _Py_hashtable_steal()
200 if ((float)ht->nentries / (float)ht->nbuckets < HASHTABLE_LOW) { in _Py_hashtable_steal()
233 if ((float)ht->nentries / (float)ht->nbuckets > HASHTABLE_HIGH) { in _Py_hashtable_set()
241 size_t index = entry->key_hash & (ht->nbuckets - 1); in _Py_hashtable_set()
265 for (size_t hv = 0; hv < ht->nbuckets; hv++) { in _Py_hashtable_foreach()
283 if (new_size == ht->nbuckets) { in hashtable_rehash()
295 for (size_t bucket = 0; bucket < ht->nbuckets; bucket++) { in hashtable_rehash()
[all …]
/external/adhd/cras/src/common/
Dcras_metrics.c24 int nbuckets) in cras_metrics_log_histogram() argument
30 CMetricsLibrarySendToUMA(handle, name, sample, min, max, nbuckets); in cras_metrics_log_histogram()
49 int nbuckets) in cras_metrics_log_histogram() argument
Dcras_metrics.h14 int nbuckets);
/external/flac/src/flac/
Danalyze.c43 uint32_t nbuckets; member
151 for(i = 0; i < stats.nbuckets; i++) { in flac__analyze_frame()
175 stats->nbuckets = 0; in init_stats()
190 for(i = 0; i < stats->nbuckets; i++) { in update_stats()
197 i = stats->nbuckets; in update_stats()
200 stats->nbuckets++; in update_stats()
230 for(i = 0; i < stats->nbuckets; i++) { in dump_stats()
/external/mesa3d/src/util/
Dformat_srgb.py89 nbuckets = numexp << mantissa_msb
102 for bucket in range(0, nbuckets):
129 for j in range(0, nbuckets, 4):
/external/python/cpython3/Modules/
D_testinternalcapi.c146 assert(table->nbuckets > 0); in test_hashtable()
159 assert(table->nbuckets > table->nentries); in test_hashtable()
191 assert(table->nbuckets > 0); in test_hashtable()
/external/llvm-project/llvm/test/tools/llvm-readobj/ELF/
Dgnuhash.test290 ## Case B: the 'nbuckets' field is set so that the table goes past the end of the file.
291 …RUN: yaml2obj --docnum=1 -DBITS=64 -DMACHINE=EM_X86_64 -D NBUCKETS=4294967295 %s -o %t.err.nbuckets
292 # RUN: llvm-readobj --gnu-hash-table %t.err.nbuckets 2>&1 | \
293 # RUN: FileCheck %s -DFILE=%t.err.nbuckets -DMASKWORDS=2 -DNBUCKETS=4294967295 --check-prefix=ERR
294 # RUN: llvm-readelf --gnu-hash-table %t.err.nbuckets 2>&1 | \
295 # RUN: FileCheck %s -DFILE=%t.err.nbuckets -DMASKWORDS=2 -DNBUCKETS=4294967295 --check-prefix=ERR
307 # RUN: llvm-readelf --gnu-hash-table --elf-hash-histogram %t.err.nbuckets 2>&1 | \
308 # RUN: FileCheck %s -DFILE=%t.err.nbuckets -DMASKWORDS=2 -DNBUCKETS=4294967295 --check-prefix=ERR…
Dhash-symbols.test476 ## Case B: the 'nbuckets' field is set so that the table goes past the end of the file.
477 # RUN: yaml2obj --docnum=8 -D NBUCKETS=4294967295 %s -o %t.err.nbuckets
478 # RUN: llvm-readelf --hash-symbols %t.err.nbuckets 2>&1 | \
479 # RUN: FileCheck %s -DFILE=%t.err.nbuckets --check-prefix=ERR4
Dhash-histogram.test270 ## Case B: the 'nbuckets' field is set so that the GNU hash table goes past the end of the file.
/external/elfutils/libdwfl/
Ddwfl_module_getdwarf.c732 Elf32_Word nbuckets; in translate_offs() member
743 Elf32_Word nbuckets = header->nbuckets; in translate_offs() local
753 if (nbuckets > SIZE_MAX / sizeof (Elf32_Word)) in translate_offs()
758 nbuckets * sizeof (Elf32_Word), in translate_offs()
760 if (data != NULL && symndx < nbuckets) in translate_offs()
764 for (Elf32_Word bucket = 0; bucket < nbuckets; ++bucket) in translate_offs()
769 + nbuckets * sizeof (Elf32_Word)); in translate_offs()
/external/kernel-headers/original/uapi/linux/
Dbcache.h188 __le64 nbuckets; /* device size */ member
248 __u64 nbuckets; /* device size */ member
/external/mdnsresponder/mDNSShared/
Ddnsextd.h141 mDNSs32 nbuckets; // buckets allocated member
Ddnsextd.c809 int i, bucket, newnbuckets = d->nbuckets * 2; in RehashTable()
816 for (i = 0; i < d->nbuckets; i++) in RehashTable()
828 d->nbuckets = newnbuckets; in RehashTable()
846 for (i = 0; i < d->nbuckets; i++) in PrintLeaseTable()
1144 d->nbuckets = LEASETABLE_INIT_NBUCKETS; in InitLeaseTable()
1347 for (i = 0; i < d->nbuckets; i++) in DeleteRecords()
1400 bucket = rr->namehash % d->nbuckets; in UpdateLeaseTable()
1443 if (d->nelems > d->nbuckets) in UpdateLeaseTable()
1446 bucket = rr->namehash % d->nbuckets; in UpdateLeaseTable()
/external/python/cpython3/Include/internal/
Dpycore_hashtable.h62 size_t nbuckets; member
/external/adhd/cras/src/server/
Dcras_server_metrics.c463 int nbuckets, ...) in log_histogram_each_level() argument
469 va_start(valist, nbuckets); in log_histogram_each_level()
483 nbuckets); in log_histogram_each_level()
/external/llvm/include/llvm/Object/
DELFTypes.h543 Elf_Word nbuckets;
555 reinterpret_cast<const Elf_Word *>(filter().end()), nbuckets);
/external/llvm-project/llvm/include/llvm/Object/
DELFTypes.h526 Elf_Word nbuckets;
538 reinterpret_cast<const Elf_Word *>(filter().end()), nbuckets);
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
DELFTypes.h528 Elf_Word nbuckets;
540 reinterpret_cast<const Elf_Word *>(filter().end()), nbuckets);
/external/adhd/cras/src/tests/
Dserver_metrics_unittest.cc372 int nbuckets) {} in cras_metrics_log_histogram() argument
Daudio_thread_unittest_obsolete.cc1981 int nbuckets) { in cras_metrics_log_histogram() argument
/external/llvm-project/llvm/lib/InterfaceStub/
DELFObjHandler.cpp448 if (Table.nbuckets == 0) in getDynSymtabSize()
/external/elfutils/src/
Delflint.c2146 Elf32_Word nbuckets = ((Elf32_Word *) data->d_buf)[0]; in check_gnu_hash() local
2165 uint64_t used_buf = (4ULL + bitmask_words + nbuckets) * sizeof (Elf32_Word); in check_gnu_hash()
2184 + nbuckets); in check_gnu_hash()
2202 for (cnt = 4 + bitmask_words; cnt < 4 + bitmask_words + nbuckets; ++cnt) in check_gnu_hash()
2221 + nbuckets in check_gnu_hash()
/external/llvm-project/llvm/tools/llvm-readobj/
DELFDumper.cpp2746 if (TableOffset + 16 + (uint64_t)GnuHashTable->nbuckets * 4 + in checkGNUHashTable()
2820 W.printNumber("Num Buckets", GnuHashTable->nbuckets); in printGnuHashTable()
4180 for (uint32_t Buc = 0; Buc < GnuHash.nbuckets; Buc++) { in printGnuHashTableSymbols()
4915 size_t NBucket = GnuHashTable.nbuckets; in printGnuHashHistogram()
/external/llvm/tools/llvm-readobj/
DELFDumper.cpp1824 W.printNumber("Num Buckets", GnuHashTable->nbuckets); in printGnuHashTable()
3114 size_t NBucket = GnuHashTable->nbuckets; in printHashHistogram()