Home
last modified time | relevance | path

Searched refs:bucket (Results 1 – 25 of 183) sorted by relevance

12345678

/external/bison/lib/
Dhash.c57 struct hash_entry *bucket; member
176 struct hash_entry const *bucket; in hash_get_max_bucket_length() local
179 for (bucket = table->bucket; bucket < table->bucket_limit; bucket++) in hash_get_max_bucket_length()
181 if (bucket->data) in hash_get_max_bucket_length()
183 struct hash_entry const *cursor = bucket; in hash_get_max_bucket_length()
203 struct hash_entry const *bucket; in hash_table_ok() local
207 for (bucket = table->bucket; bucket < table->bucket_limit; bucket++) in hash_table_ok()
209 if (bucket->data) in hash_table_ok()
211 struct hash_entry const *cursor = bucket; in hash_table_ok()
254 return table->bucket + n; in safe_hasher()
[all …]
/external/libvpx/libvpx/
Drate_hist.c33 struct hist_bucket bucket[RATE_BINS]; member
62 hist->bucket[i].low = INT_MAX; in init_rate_histogram()
63 hist->bucket[i].high = 0; in init_rate_histogram()
64 hist->bucket[i].count = 0; in init_rate_histogram()
118 if (hist->bucket[idx].low > avg_bitrate) in update_rate_histogram()
119 hist->bucket[idx].low = (int)avg_bitrate; in update_rate_histogram()
120 if (hist->bucket[idx].high < avg_bitrate) in update_rate_histogram()
121 hist->bucket[idx].high = (int)avg_bitrate; in update_rate_histogram()
122 hist->bucket[idx].count++; in update_rate_histogram()
126 static int merge_hist_buckets(struct hist_bucket *bucket, int max_buckets, in merge_hist_buckets() argument
[all …]
/external/libdrm/
Dxf86drmHash.c127 HashBucketPtr bucket; in drmHashDestroy() local
134 for (bucket = table->buckets[i]; bucket;) { in drmHashDestroy()
135 next = bucket->next; in drmHashDestroy()
136 drmFree(bucket); in drmHashDestroy()
137 bucket = next; in drmHashDestroy()
152 HashBucketPtr bucket; in HashFind() local
156 for (bucket = table->buckets[hash]; bucket; bucket = bucket->next) { in HashFind()
157 if (bucket->key == key) { in HashFind()
160 prev->next = bucket->next; in HashFind()
161 bucket->next = table->buckets[hash]; in HashFind()
[all …]
/external/kmod/shared/
Dhash.c69 struct hash_bucket *bucket, *bucket_end; in hash_free() local
74 bucket = hash->buckets; in hash_free()
75 bucket_end = bucket + hash->n_buckets; in hash_free()
76 for (; bucket < bucket_end; bucket++) { in hash_free()
79 entry = bucket->entries; in hash_free()
80 entry_end = entry + bucket->used; in hash_free()
84 free(bucket->entries); in hash_free()
151 struct hash_bucket *bucket = hash->buckets + pos; in hash_add() local
154 if (bucket->used + 1 >= bucket->total) { in hash_add()
155 unsigned new_total = bucket->total + hash->step; in hash_add()
[all …]
/external/mesa3d/src/glx/
Dglxhash.c179 __glxHashBucketPtr bucket; in __glxHashDestroy() local
187 for (bucket = table->buckets[i]; bucket;) { in __glxHashDestroy()
188 next = bucket->next; in __glxHashDestroy()
189 HASH_FREE(bucket); in __glxHashDestroy()
190 bucket = next; in __glxHashDestroy()
205 __glxHashBucketPtr bucket; in HashFind() local
210 for (bucket = table->buckets[hash]; bucket; bucket = bucket->next) { in HashFind()
211 if (bucket->key == key) { in HashFind()
214 prev->next = bucket->next; in HashFind()
215 bucket->next = table->buckets[hash]; in HashFind()
[all …]
/external/parameter-framework/asio-1.10.6/include/asio/detail/
Dhash_map.hpp103 size_t bucket = calculate_hash_value(k) % num_buckets_; in find() local
104 iterator it = buckets_[bucket].first; in find()
107 iterator end_it = buckets_[bucket].last; in find()
124 size_t bucket = calculate_hash_value(k) % num_buckets_; in find() local
125 const_iterator it = buckets_[bucket].first; in find()
128 const_iterator end_it = buckets_[bucket].last; in find()
145 size_t bucket = calculate_hash_value(v.first) % num_buckets_; in insert() local
146 iterator it = buckets_[bucket].first; in insert()
149 buckets_[bucket].first = buckets_[bucket].last = in insert()
152 return std::pair<iterator, bool>(buckets_[bucket].last, true); in insert()
[all …]
/external/libcxx/test/std/containers/unord/unord.multiset/
Dlocal_iterators.pass.cpp45 C::size_type b = c.bucket(0); in main()
50 b = c.bucket(1); in main()
58 b = c.bucket(2); in main()
66 b = c.bucket(3); in main()
72 b = c.bucket(4); in main()
78 b = c.bucket(5); in main()
83 b = c.bucket(6); in main()
103 C::size_type b = c.bucket(0); in main()
108 b = c.bucket(1); in main()
116 b = c.bucket(2); in main()
[all …]
Dlocal_iterators.fail.cpp45 C::size_type b = c.bucket(0); in main()
50 b = c.bucket(1); in main()
59 b = c.bucket(2); in main()
67 b = c.bucket(3); in main()
73 b = c.bucket(4); in main()
79 b = c.bucket(5); in main()
84 b = c.bucket(6); in main()
104 C::size_type b = c.bucket(0); in main()
109 b = c.bucket(1); in main()
117 b = c.bucket(2); in main()
[all …]
/external/libdrm/etnaviv/
Detnaviv_bo_cache.c82 struct etna_bo_bucket *bucket = &cache->cache_bucket[i]; in etna_bo_cache_cleanup() local
85 while (!LIST_IS_EMPTY(&bucket->list)) { in etna_bo_cache_cleanup()
86 bo = LIST_ENTRY(struct etna_bo, bucket->list.next, list); in etna_bo_cache_cleanup()
108 struct etna_bo_bucket *bucket = &cache->cache_bucket[i]; in get_bucket() local
109 if (bucket->size >= size) { in get_bucket()
110 return bucket; in get_bucket()
125 static struct etna_bo *find_in_bucket(struct etna_bo_bucket *bucket, uint32_t flags) in find_in_bucket() argument
130 while (!LIST_IS_EMPTY(&bucket->list)) { in find_in_bucket()
131 bo = LIST_ENTRY(struct etna_bo, bucket->list.next, list); in find_in_bucket()
154 struct etna_bo_bucket *bucket; in etna_bo_cache_alloc() local
[all …]
/external/libmojo/third_party/jinja2/
Dbccache.py138 def load_bytecode(self, bucket): argument
145 def dump_bytecode(self, bucket): argument
178 bucket = Bucket(environment, key, checksum)
179 self.load_bytecode(bucket)
180 return bucket
182 def set_bucket(self, bucket): argument
184 self.dump_bytecode(bucket)
209 def _get_cache_filename(self, bucket): argument
210 return path.join(self.directory, self.pattern % bucket.key)
212 def load_bytecode(self, bucket): argument
[all …]
/external/libdrm/freedreno/
Dfreedreno_bo_cache.c95 struct fd_bo_bucket *bucket = &cache->cache_bucket[i]; in fd_bo_cache_cleanup() local
98 while (!LIST_IS_EMPTY(&bucket->list)) { in fd_bo_cache_cleanup()
99 bo = LIST_ENTRY(struct fd_bo, bucket->list.next, list); in fd_bo_cache_cleanup()
121 struct fd_bo_bucket *bucket = &cache->cache_bucket[i]; in get_bucket() local
122 if (bucket->size >= size) { in get_bucket()
123 return bucket; in get_bucket()
138 static struct fd_bo *find_in_bucket(struct fd_bo_bucket *bucket, uint32_t flags) in find_in_bucket() argument
150 if (!LIST_IS_EMPTY(&bucket->list)) { in find_in_bucket()
151 bo = LIST_ENTRY(struct fd_bo, bucket->list.next, list); in find_in_bucket()
169 struct fd_bo_bucket *bucket; in fd_bo_cache_alloc() local
[all …]
/external/libcxx/test/std/containers/unord/unord.set/
Dlocal_iterators.pass.cpp45 C::size_type b = c.bucket(0); in main()
50 b = c.bucket(1); in main()
56 b = c.bucket(2); in main()
62 b = c.bucket(3); in main()
68 b = c.bucket(4); in main()
89 C::size_type b = c.bucket(0); in main()
94 b = c.bucket(1); in main()
100 b = c.bucket(2); in main()
106 b = c.bucket(3); in main()
112 b = c.bucket(4); in main()
[all …]
Dlocal_iterators.fail.cpp43 C::size_type b = c.bucket(0); in main()
48 b = c.bucket(1); in main()
57 b = c.bucket(2); in main()
65 b = c.bucket(3); in main()
71 b = c.bucket(4); in main()
77 b = c.bucket(5); in main()
82 b = c.bucket(6); in main()
102 C::size_type b = c.bucket(0); in main()
107 b = c.bucket(1); in main()
115 b = c.bucket(2); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.multimap/
Dlocal_iterators.pass.cpp46 C::size_type b = c.bucket(0); in main()
51 b = c.bucket(1); in main()
61 b = c.bucket(2); in main()
71 b = c.bucket(3); in main()
78 b = c.bucket(4); in main()
85 b = c.bucket(5); in main()
90 b = c.bucket(6); in main()
110 C::size_type b = c.bucket(0); in main()
115 b = c.bucket(1); in main()
125 b = c.bucket(2); in main()
[all …]
Dlocal_iterators.fail.cpp46 C::size_type b = c.bucket(0); in main()
51 b = c.bucket(1); in main()
62 b = c.bucket(2); in main()
72 b = c.bucket(3); in main()
79 b = c.bucket(4); in main()
86 b = c.bucket(5); in main()
91 b = c.bucket(6); in main()
111 C::size_type b = c.bucket(0); in main()
116 b = c.bucket(1); in main()
126 b = c.bucket(2); in main()
[all …]
/external/libcxx/test/std/containers/unord/unord.map/
Dlocal_iterators.pass.cpp46 C::size_type b = c.bucket(0); in main()
51 b = c.bucket(1); in main()
58 b = c.bucket(2); in main()
65 b = c.bucket(3); in main()
72 b = c.bucket(4); in main()
94 C::size_type b = c.bucket(0); in main()
99 b = c.bucket(1); in main()
106 b = c.bucket(2); in main()
113 b = c.bucket(3); in main()
120 b = c.bucket(4); in main()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_mm.c36 struct mm_bucket bucket[MM_NUM_BUCKETS]; member
97 return &cache->bucket[MAX2(order, MM_MIN_ORDER) - MM_MIN_ORDER]; in mm_bucket_by_order()
167 struct mm_bucket *bucket; in nouveau_mm_allocate() local
172 bucket = mm_bucket_by_size(cache, size); in nouveau_mm_allocate()
173 if (!bucket) { in nouveau_mm_allocate()
184 if (!LIST_IS_EMPTY(&bucket->used)) { in nouveau_mm_allocate()
185 slab = LIST_ENTRY(struct mm_slab, bucket->used.next, head); in nouveau_mm_allocate()
187 if (LIST_IS_EMPTY(&bucket->free)) { in nouveau_mm_allocate()
190 slab = LIST_ENTRY(struct mm_slab, bucket->free.next, head); in nouveau_mm_allocate()
193 LIST_ADD(&slab->head, &bucket->used); in nouveau_mm_allocate()
[all …]
/external/libchrome/base/trace_event/
Dheap_profiler_heap_dump_writer.cc79 std::vector<Bucket> GetSubbuckets(const Bucket& bucket, in GetSubbuckets() argument
85 for (const auto& context_and_metrics : bucket.metrics_by_context) { in GetSubbuckets()
89 const StackFrame* cursor = begin + bucket.backtrace_cursor; in GetSubbuckets()
98 subbucket.backtrace_cursor = bucket.backtrace_cursor + 1; in GetSubbuckets()
100 bucket.is_broken_down_by_type_name; in GetSubbuckets()
106 if (!bucket.is_broken_down_by_type_name) { in GetSubbuckets()
107 for (const auto& context_and_metrics : bucket.metrics_by_context) { in GetSubbuckets()
113 subbucket.backtrace_cursor = bucket.backtrace_cursor; in GetSubbuckets()
131 std::vector<Bucket> BreakDownBy(const Bucket& bucket, in BreakDownBy() argument
134 std::vector<Bucket> buckets = GetSubbuckets(bucket, break_by); in BreakDownBy()
[all …]
/external/autotest/site_utils/lxc/
Dcontainer_bucket_unittest.py51 bucket = lxc.ContainerBucket(container_path, self.shared_host_path)
54 self.assertEqual(os.path.realpath(bucket.shared_host_path),
58 bucket.setup_base()
62 bucket.destroy_all()
70 bucket = lxc.ContainerBucket(container_path, self.shared_host_path)
75 bucket.destroy_all()
85 self.bucket = lxc.ContainerBucket(container_path,
90 for container in self.bucket.get_all().values():
92 self.bucket.destroy_all()
119 self.bucket.setup_base(name=name)
[all …]
/external/chromium-trace/catapult/common/py_utils/py_utils/
Dcloud_storage.py189 def List(bucket): argument
190 query = 'gs://%s/' % bucket
195 def Exists(bucket, remote_path): argument
197 _RunCommand(['ls', 'gs://%s/%s' % (bucket, remote_path)])
228 def Delete(bucket, remote_path): argument
229 url = 'gs://%s/%s' % (bucket, remote_path)
234 def Get(bucket, remote_path, local_path): argument
236 _GetLocked(bucket, remote_path, local_path)
337 def _GetLocked(bucket, remote_path, local_path): argument
338 url = 'gs://%s/%s' % (bucket, remote_path)
[all …]
/external/mesa3d/src/gallium/drivers/swr/rasterizer/common/
Drdtsc_buckets.cpp79 …rintBucket(FILE* f, UINT level, uint64_t threadCycles, uint64_t parentCycles, const BUCKET& bucket) in PrintBucket() argument
94 float percentTotal = (float)((double)bucket.elapsed / (double)threadCycles * 100.0); in PrintBucket()
97 float percentParent = (float)((double)bucket.elapsed / (double)parentCycles * 100.0); in PrintBucket()
100 uint64_t CPE = bucket.elapsed / bucket.count; in PrintBucket()
102 BUCKET_DESC &desc = mBuckets[bucket.id]; in PrintBucket()
113 bucket.elapsed, in PrintBucket()
115 bucket.count, in PrintBucket()
122 for (const BUCKET& child : bucket.children) in PrintBucket()
126 PrintBucket(f, level + 1, threadCycles, bucket.elapsed, child); in PrintBucket()
/external/chromium-trace/catapult/dependency_manager/dependency_manager/
Duploader_unittest.py15 self.bucket = 'cloud_storage_bucket'
24 self.bucket, None, self.local_path)
26 self.bucket, self.remote_path, None)
31 self.bucket, self.remote_path, self.local_path)
35 self.bucket, self.remote_path, self.local_path)
36 expected_bucket = self.bucket
47 self.bucket, self.remote_path, self.local_path)
49 self.bucket, self.remote_path, self.local_path)
68 self.bucket, self.remote_path, self.local_path)
74 self.bucket, new_remote_path, self.local_path)
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DAlphabeticIndex.java623 for (Bucket<V> bucket : buckets) { in getBucketLabels()
624 result.add(bucket.getLabel()); in getBucketLabels()
781 Bucket<V> bucket = currentBucket; in initBuckets() local
782 if (bucket.displayBucket != null) { in initBuckets()
783 bucket = bucket.displayBucket; in initBuckets()
785 if (bucket.records == null) { in initBuckets()
786 bucket.records = new ArrayList<Record<V>>(); in initBuckets()
788 bucket.records.add(r); in initBuckets()
1012 Bucket<V> bucket = new Bucket<V>(fixLabel(current), current, LabelType.NORMAL); in createBucketList() local
1013 bucketList.add(bucket); in createBucketList()
[all …]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DAlphabeticIndex.java644 for (Bucket<V> bucket : buckets) { in getBucketLabels()
645 result.add(bucket.getLabel()); in getBucketLabels()
809 Bucket<V> bucket = currentBucket; in initBuckets() local
810 if (bucket.displayBucket != null) { in initBuckets()
811 bucket = bucket.displayBucket; in initBuckets()
813 if (bucket.records == null) { in initBuckets()
814 bucket.records = new ArrayList<Record<V>>(); in initBuckets()
816 bucket.records.add(r); in initBuckets()
1058 Bucket<V> bucket = new Bucket<V>(fixLabel(current), current, LabelType.NORMAL); in createBucketList() local
1059 bucketList.add(bucket); in createBucketList()
[all …]
/external/jemalloc/src/
Dckh.c53 ckh_bucket_search(ckh_t *ckh, size_t bucket, const void *key) in ckh_bucket_search() argument
59 cell = &ckh->tab[(bucket << LG_CKH_BUCKET_CELLS) + i]; in ckh_bucket_search()
61 return ((bucket << LG_CKH_BUCKET_CELLS) + i); in ckh_bucket_search()
73 size_t hashes[2], bucket, cell; in ckh_isearch() local
80 bucket = hashes[0] & ((ZU(1) << ckh->lg_curbuckets) - 1); in ckh_isearch()
81 cell = ckh_bucket_search(ckh, bucket, key); in ckh_isearch()
86 bucket = hashes[1] & ((ZU(1) << ckh->lg_curbuckets) - 1); in ckh_isearch()
87 cell = ckh_bucket_search(ckh, bucket, key); in ckh_isearch()
92 ckh_try_bucket_insert(ckh_t *ckh, size_t bucket, const void *key, in ckh_try_bucket_insert() argument
105 cell = &ckh->tab[(bucket << LG_CKH_BUCKET_CELLS) + in ckh_try_bucket_insert()
[all …]

12345678