Lines Matching refs:htsize
222 size_t htsize = 256; in HashTableSize() local
223 while (htsize < max_table_size && htsize < input_size) { in HashTableSize()
224 htsize <<= 1; in HashTableSize()
226 return htsize; in HashTableSize()
237 size_t htsize = HashTableSize(max_table_size, input_size); in GetHashTable() local
242 if ((htsize & 0xAAAAA) == 0) { in GetHashTable()
243 htsize <<= 1; in GetHashTable()
247 if (htsize <= sizeof(s->small_table_) / sizeof(s->small_table_[0])) { in GetHashTable()
250 if (htsize > s->large_table_size_) { in GetHashTable()
251 s->large_table_size_ = htsize; in GetHashTable()
253 s->large_table_ = BROTLI_ALLOC(m, int, htsize); in GetHashTable()
259 *table_size = htsize; in GetHashTable()
260 memset(table, 0, htsize * sizeof(*table)); in GetHashTable()