Home
last modified time | relevance | path

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

/external/bison/lib/
Dhash.c59 size_t n_buckets; member
152 return table->n_buckets; in hash_get_n_buckets()
233 size_t n_buckets = hash_get_n_buckets (table); in hash_print_statistics() local
238 fprintf (stream, "# buckets: %lu\n", (unsigned long int) n_buckets); in hash_print_statistics()
241 (100.0 * n_buckets_used) / n_buckets); in hash_print_statistics()
253 = table->bucket + table->hasher (entry, table->n_buckets); in hash_lookup()
301 = table->bucket + table->hasher (entry, table->n_buckets); in hash_get_next()
395 hash_string (const char *string, size_t n_buckets) in hash_string() argument
407 return value % n_buckets; in hash_string()
421 hash_string (const char *string, size_t n_buckets) in hash_string() argument
[all …]
/external/dbus/dbus/
Ddbus-hash.c178 int n_buckets; /**< Total number of buckets allocated member
316 table->n_buckets = DBUS_SMALL_HASH_TABLE; in _dbus_hash_table_new()
324 _dbus_assert (table->mask < table->n_buckets); in _dbus_hash_table_new()
386 for (i = 0; i < table->n_buckets; i++) in _dbus_hash_table_unref()
403 for (i = 0; i < table->n_buckets; i++) in _dbus_hash_table_unref()
573 if (real->next_bucket >= real->table->n_buckets) in _dbus_hash_iter_next()
1029 old_size = table->n_buckets; in rebuild_table()
1035 if (table->n_buckets < _DBUS_INT_MAX / 4 && in rebuild_table()
1037 new_buckets = table->n_buckets * 4; in rebuild_table()
1043 new_buckets = table->n_buckets / 4; in rebuild_table()
[all …]