Searched refs:buckets (Results 1 - 4 of 4) sorted by relevance

/xnu-2782.1.97/libkern/kxld/
H A Dkxld_dict.c90 /* We want the number of allocated buckets to be at least twice that of the
98 /* Allocate enough buckets for the anticipated number of entries */
99 rval = kxld_array_init(&dict->buckets, sizeof(DictEntry), num_buckets);
125 kxld_array_clear(&dict->buckets);
148 kxld_array_deinit(&dict->buckets);
177 entry = kxld_array_get_item(&dict->buckets, idx);
184 * collision, we just walk along the buckets until a free bucket shows up.
200 entry = kxld_array_get_item(&dict->buckets, idx);
204 idx = (idx + 1) % dict->buckets.nitems;
207 entry = kxld_array_get_item(&dict->buckets, id
[all...]
H A Dkxld_dict.h44 * prime or 'pseudoprime' - good choices for number of buckets.
61 KXLDArray buckets; // The array of buckets member in struct:kxld_dict
/xnu-2782.1.97/libkern/c++/
H A DOSSymbol.cpp77 Bucket *buckets; member in class:OSSymbolPool
149 buckets = (Bucket *) kalloc(nBuckets * sizeof(Bucket));
151 if (!buckets)
154 bzero(buckets, nBuckets * sizeof(Bucket));
165 buckets = old->buckets;
172 if (buckets) {
174 for (thisBucket = &buckets[0]; thisBucket < &buckets[nBuckets]; thisBucket++) {
180 kfree(buckets, nBucket
[all...]
/xnu-2782.1.97/osfmk/profiling/i386/
H A Dprofile-md.h231 * Fraction of text space to allocate for from hash buckets.
297 prof_uptrint_t profil_buckets; /* # profil buckets */
302 prof_uptrint_t hash_buckets; /* # gprof hash buckets */
308 prof_cnt_t hash_search; /* # hash buckets searched */
327 prof_uptrint_t buckets[MAX_BUCKETS+1]; /* # hash indexes that have n buckets */ member in struct:profile_stats

Completed in 78 milliseconds