Home
last modified time | relevance | path

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

/third_party/mesa3d/src/gallium/auxiliary/cso_cache/
Dcso_hash.c111 int oldNumBuckets = hash->numBuckets; in cso_data_rehash()
115 hash->numBuckets = primeForNumBits(hint); in cso_data_rehash()
116 hash->buckets = MALLOC(sizeof(struct cso_node*) * hash->numBuckets); in cso_data_rehash()
117 for (i = 0; i < hash->numBuckets; ++i) in cso_data_rehash()
132 beforeFirstNode = &hash->buckets[h % hash->numBuckets]; in cso_data_rehash()
146 if (hash->size >= hash->numBuckets) in cso_data_might_grow()
152 if (hash->size <= (hash->numBuckets >> 3) && in cso_data_has_shrunk()
163 int n = hash->numBuckets; in cso_data_first_node()
196 hash->numBuckets = 0; in cso_hash_init()
204 int n = hash->numBuckets; in cso_hash_deinit()
[all …]
Dcso_hash.h72 int numBuckets; member
145 if (hash->numBuckets) { in cso_hash_find_node()
146 node = &hash->buckets[akey % hash->numBuckets]; in cso_hash_find_node()
/third_party/skia/third_party/externals/brotli/java/org/brotli/enc/
DPreparedDictionaryGenerator.java56 int numBuckets = 1 << bucketBits; in generate() local
67 short[] num = new short[numBuckets]; in generate()
68 int[] bucketHeads = new int[numBuckets]; in generate()
102 for (int j = i; j < numBuckets; j += numSlots) { in generate()
127 int part2 = numBuckets * 2; in generate()
158 for (int i = 0; i < numBuckets; ++i) { in generate()
/third_party/mesa3d/src/gallium/auxiliary/pipebuffer/
Dpb_bufmgr_slab.c153 unsigned numBuckets; member
490 for (i = 0; i < mgr->numBuckets; ++i) { in pb_slab_range_manager_create_buffer()
520 for (i = 0; i < mgr->numBuckets; ++i) in pb_slab_range_manager_destroy()
554 mgr->numBuckets = 1; in pb_slab_range_manager_create()
558 ++mgr->numBuckets; in pb_slab_range_manager_create()
561 mgr->buckets = CALLOC(mgr->numBuckets, sizeof(*mgr->buckets)); in pb_slab_range_manager_create()
566 for (i = 0; i < mgr->numBuckets; ++i) { in pb_slab_range_manager_create()
576 for (i = 0; i < mgr->numBuckets; ++i) in pb_slab_range_manager_create()
/third_party/flutter/skia/third_party/externals/wuffs/script/
Dextract-giflzw.go247 const numBuckets = 14 const
251 histogram = [numBuckets]uint32{}
252 bucketNames = [numBuckets]string{
/third_party/node/test/fixtures/
Dguess-hash-seed.js63 function hash_to_bucket(hash, numBuckets) { argument
64 return (hash & ((numBuckets) - 1));
/third_party/vk-gl-cts/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()