Lines Matching refs:n_buckets
165 gint n_buckets; member
169 hash_table_new (gint n_buckets) in hash_table_new() argument
174 table->buckets = g_new0 (GvdbItem *, n_buckets); in hash_table_new()
175 table->n_buckets = n_buckets; in hash_table_new()
198 bucket = hash_value % table->n_buckets; in hash_table_insert()
306 gsize n_buckets, in file_builder_allocate_for_hash() argument
322 table_hdr = guint32_to_le (n_buckets); in file_builder_allocate_for_hash()
326 n_buckets * sizeof (guint32_le) + in file_builder_allocate_for_hash()
335 *hash_buckets = (guint32_le *) chunk (n_buckets * sizeof (guint32_le)); in file_builder_allocate_for_hash()
342 memset (*hash_buckets, 0, n_buckets * sizeof (guint32_le)); in file_builder_allocate_for_hash()
369 for (bucket = 0; bucket < mytable->n_buckets; bucket++) in file_builder_add_hash()
373 file_builder_allocate_for_hash (fb, mytable->n_buckets, index, 5, 0, in file_builder_add_hash()
377 for (bucket = 0; bucket < mytable->n_buckets; bucket++) in file_builder_add_hash()