Home
last modified time | relevance | path

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

/external/chromium_org/third_party/mesa/src/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/mesa3d/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/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_bufmgr_slab.c158 unsigned numBuckets; member
496 for (i = 0; i < mgr->numBuckets; ++i) { in pb_slab_range_manager_create_buffer()
526 for (i = 0; i < mgr->numBuckets; ++i) in pb_slab_range_manager_destroy()
560 mgr->numBuckets = 1; in pb_slab_range_manager_create()
564 ++mgr->numBuckets; in pb_slab_range_manager_create()
567 mgr->buckets = CALLOC(mgr->numBuckets, sizeof(*mgr->buckets)); in pb_slab_range_manager_create()
572 for (i = 0; i < mgr->numBuckets; ++i) { in pb_slab_range_manager_create()
582 for (i = 0; i < mgr->numBuckets; ++i) in pb_slab_range_manager_create()
/external/chromium_org/third_party/mesa/src/src/gallium/auxiliary/pipebuffer/
Dpb_bufmgr_slab.c158 unsigned numBuckets; member
496 for (i = 0; i < mgr->numBuckets; ++i) { in pb_slab_range_manager_create_buffer()
526 for (i = 0; i < mgr->numBuckets; ++i) in pb_slab_range_manager_destroy()
560 mgr->numBuckets = 1; in pb_slab_range_manager_create()
564 ++mgr->numBuckets; in pb_slab_range_manager_create()
567 mgr->buckets = CALLOC(mgr->numBuckets, sizeof(*mgr->buckets)); in pb_slab_range_manager_create()
572 for (i = 0; i < mgr->numBuckets; ++i) { in pb_slab_range_manager_create()
582 for (i = 0; i < mgr->numBuckets; ++i) in pb_slab_range_manager_create()
/external/chromium_org/third_party/WebKit/Source/wtf/
DPartitionAlloc.cpp138 void partitionAllocInit(PartitionRoot* root, size_t numBuckets, size_t maxAllocation) in partitionAllocInit() argument
142 root->numBuckets = numBuckets; in partitionAllocInit()
145 for (i = 0; i < root->numBuckets; ++i) { in partitionAllocInit()
279 for (i = 0; i < root->numBuckets; ++i) { in partitionAllocShutdown()
932 for (i = 0; i < root.numBuckets; ++i) { in partitionDumpStats()
DPartitionAlloc.h259 unsigned numBuckets; member
303 WTF_EXPORT void partitionAllocInit(PartitionRoot*, size_t numBuckets, size_t maxAllocation);
481 ASSERT(index < root->numBuckets); in partitionAlloc()
/external/chromium_org/third_party/npapi/npspy/extern/nspr/
Dplhash.h106 PL_NewHashTable(PRUint32 numBuckets, PLHashFunction keyHash,
/external/deqp/modules/gles3/performance/
Des3pBufferDataUploadTests.cpp1087 … samples, std::vector<UploadSampleResult<DurationType> >* buckets, int numBuckets, int& minBufferS… in bucketizeSamplesUniformly() argument
1104 …es[sampleNdx].allocatedSize - minBufferSize) / (float)(maxBufferSize - minBufferSize) * numBuckets; in bucketizeSamplesUniformly()
1105 const int bucketNdx = de::clamp((int)deFloatFloor(bucketNdxFloat), 0, numBuckets-1); in bucketizeSamplesUniformly()
1717 const int numBuckets = 4; in analyzeSampleResults() local
1720 std::vector<UploadSampleResult<SampleType> > buckets[numBuckets]; in analyzeSampleResults()
1722 bucketizeSamplesUniformly(samples, &buckets[0], numBuckets, minBufferSize, maxBufferSize); in analyzeSampleResults()
1724 for (int bucketNdx = 0; bucketNdx < numBuckets; ++bucketNdx) in analyzeSampleResults()
1731 …const int bucketRangeMin = minBufferSize + (int)(( bucketNdx / (float)numBuckets) * … in analyzeSampleResults()
1732 …const int bucketRangeMax = minBufferSize + (int)(((bucketNdx+1) / (float)numBuckets) * … in analyzeSampleResults()