Home
last modified time | relevance | path

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

/OK3568_Linux_fs/external/xserver/Xext/
H A Dhashtable.c20 int bucketBits; /* number of buckets is 1 << bucketBits */ member
55 ht->bucketBits = INITHASHSIZE; in ht_create()
56 numBuckets = 1 << ht->bucketBits; in ht_create()
76 int numBuckets = 1 << ht->bucketBits; in ht_destroy()
93 int numBuckets = 1 << ht->bucketBits; in double_size()
94 int newBucketBits = ht->bucketBits + 1; in double_size()
116 ht->bucketBits = newBucketBits; in double_size()
126 unsigned index = ht->hash(ht->cdata, key, ht->bucketBits); in ht_add()
146 if (ht->elements > 4 * (1 << ht->bucketBits) && in ht_add()
147 ht->bucketBits < MAXHASHSIZE) { in ht_add()
[all …]