Home
last modified time | relevance | path

Searched refs:numBuckets (Results 1 – 10 of 10) sorted by relevance

/external/mesa3d/src/gallium/auxiliary/cso_cache/
Dcso_hash.c83 int numBuckets; member
131 int oldNumBuckets = hash->numBuckets; in cso_data_rehash()
135 hash->numBuckets = primeForNumBits(hint); in cso_data_rehash()
136 hash->buckets = MALLOC(sizeof(struct cso_node*) * hash->numBuckets); in cso_data_rehash()
137 for (i = 0; i < hash->numBuckets; ++i) in cso_data_rehash()
152 beforeFirstNode = &hash->buckets[h % hash->numBuckets]; in cso_data_rehash()
166 if (hash->size >= hash->numBuckets) in cso_data_might_grow()
172 if (hash->size <= (hash->numBuckets >> 3) && in cso_data_has_shrunk()
183 int n = hash->numBuckets; in cso_data_first_node()
196 if (hash->data.d->numBuckets) { in cso_hash_find_node()
[all …]
/external/libdrm/amdgpu/
Dutil_hash.c86 int numBuckets; member
141 int oldNumBuckets = hash->numBuckets; in util_data_rehash()
145 hash->numBuckets = primeForNumBits(hint); in util_data_rehash()
146 hash->buckets = malloc(sizeof(struct util_node*) * hash->numBuckets); in util_data_rehash()
147 for (i = 0; i < hash->numBuckets; ++i) in util_data_rehash()
162 beforeFirstNode = &hash->buckets[h % hash->numBuckets]; in util_data_rehash()
176 if (hash->size >= hash->numBuckets) in util_data_might_grow()
182 if (hash->size <= (hash->numBuckets >> 3) && in util_data_has_shrunk()
193 int n = hash->numBuckets; in util_data_first_node()
206 if (hash->data.d->numBuckets) { in util_hash_find_node()
[all …]
/external/virglrenderer/src/gallium/auxiliary/cso_cache/
Dcso_hash.c87 int numBuckets; member
142 int oldNumBuckets = hash->numBuckets; in cso_data_rehash()
146 hash->numBuckets = primeForNumBits(hint); in cso_data_rehash()
147 hash->buckets = MALLOC(sizeof(struct cso_node*) * hash->numBuckets); in cso_data_rehash()
148 for (i = 0; i < hash->numBuckets; ++i) in cso_data_rehash()
163 beforeFirstNode = &hash->buckets[h % hash->numBuckets]; in cso_data_rehash()
177 if (hash->size >= hash->numBuckets) in cso_data_might_grow()
183 if (hash->size <= (hash->numBuckets >> 3) && in cso_data_has_shrunk()
194 int n = hash->numBuckets; in cso_data_first_node()
207 if (hash->data.d->numBuckets) { in cso_hash_find_node()
[all …]
/external/syzkaller/vendor/golang.org/x/net/internal/timeseries/
Dtimeseries.go109 func (l *tsLevel) InitLevel(size time.Duration, numBuckets int, f func() Observable) {
112 l.buckets = make([]Observable, numBuckets)
125 numBuckets int // number of buckets in each level member
136 func (ts *timeSeries) init(resolutions []time.Duration, f func() Observable, numBuckets int, clock …
138 ts.numBuckets = numBuckets
148 newLevel.InitLevel(resolutions[i], ts.numBuckets, ts.provider)
202 index := (ts.numBuckets - 1) - int(level.end.Sub(t)/level.size)
203 if 0 <= index && index < ts.numBuckets {
204 bucketNumber := (level.oldest + index) % ts.numBuckets
237 if !t.Before(level.end.Add(level.size * time.Duration(ts.numBuckets))) {
[all …]
/external/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_bufmgr_slab.c157 unsigned numBuckets; member
495 for (i = 0; i < mgr->numBuckets; ++i) { in pb_slab_range_manager_create_buffer()
525 for (i = 0; i < mgr->numBuckets; ++i) in pb_slab_range_manager_destroy()
559 mgr->numBuckets = 1; in pb_slab_range_manager_create()
563 ++mgr->numBuckets; in pb_slab_range_manager_create()
566 mgr->buckets = CALLOC(mgr->numBuckets, sizeof(*mgr->buckets)); in pb_slab_range_manager_create()
571 for (i = 0; i < mgr->numBuckets; ++i) { in pb_slab_range_manager_create()
581 for (i = 0; i < mgr->numBuckets; ++i) in pb_slab_range_manager_create()
/external/perfetto/ui/src/tracks/process_summary/
Dcontroller.ts91 const numBuckets = Math.ceil((endNs - startNs) / bucketSizeNs); constant
107 utilizations: new Float64Array(numBuckets),
/external/perfetto/ui/src/tracks/cpu_slices/
Dcontroller.ts86 const numBuckets = Math.ceil((endNs - startNs) / bucketSizeNs); constant
105 utilizations: new Float64Array(numBuckets),
/external/perfetto/ui/src/tracks/process_scheduling/
Dcontroller.ts96 const numBuckets = Math.ceil((endNs - startNs) / bucketSizeNs); constant
118 utilizations: new Float64Array(numBuckets),
/external/deqp/modules/gles3/performance/
Des3pBufferDataUploadTests.cpp1068 … samples, std::vector<UploadSampleResult<DurationType> >* buckets, int numBuckets, int& minBufferS… in bucketizeSamplesUniformly() argument
1085 …leNdx].allocatedSize - minBufferSize) / (float)(maxBufferSize - minBufferSize) * (float)numBuckets; in bucketizeSamplesUniformly()
1086 const int bucketNdx = de::clamp((int)deFloatFloor(bucketNdxFloat), 0, numBuckets-1); in bucketizeSamplesUniformly()
1698 const int numBuckets = 4; in analyzeSampleResults() local
1701 std::vector<UploadSampleResult<SampleType> > buckets[numBuckets]; in analyzeSampleResults()
1703 bucketizeSamplesUniformly(samples, &buckets[0], numBuckets, minBufferSize, maxBufferSize); in analyzeSampleResults()
1705 for (int bucketNdx = 0; bucketNdx < numBuckets; ++bucketNdx) in analyzeSampleResults()
1712 … bucketRangeMin = minBufferSize + (int)(((float) bucketNdx / (float)numBuckets) * (float)(maxBu… in analyzeSampleResults()
1713 … bucketRangeMax = minBufferSize + (int)(((float)(bucketNdx+1) / (float)numBuckets) * (float)(maxBu… in analyzeSampleResults()
/external/antlr/runtime/ObjC/Framework/
DHashMap.m1707 NSInteger numBuckets = [s readInt];