Searched refs:n_buckets (Results 1 - 2 of 2) sorted by relevance
| /systemd/tools/ |
| H A D | gdb-sd_dump_hashmaps.py | 44 n_buckets = h["indirect"]["n_buckets"] 48 n_buckets = all_direct_buckets[int(h["type"])]; 52 print "%s, %s, %s, %d, %d, %d, %s (%s:%d)" % (t, h["hash_ops"], bool(h["has_indirect"]), n_entries, d["max_entries"], n_buckets, d["func"], d["file"], d["line"]) 55 dib_raw_addr = storage_ptr + (all_entry_sizes[h["type"]] * n_buckets) 58 for i in xrange(0, n_buckets): 66 print "%3d %8d %f%% of slots" % (dib, histogram[dib], 100.0*histogram[dib]/n_buckets) 72 for i in xrange(1, n_buckets): 85 if len(blocks) > 1 and blocks[0][0] == blocks[0][1] and blocks[-1][0] == n_buckets - 1:
|
| /systemd/src/basic/ |
| H A D | hashmap.c | 183 unsigned n_buckets; /* number of buckets */ member in struct:indirect_storage 281 static unsigned n_buckets(HashmapBase *h) { function 282 return h->has_indirect ? h->indirect.n_buckets 325 return (unsigned) (hash % n_buckets(h)); 384 (storage_ptr(h) + hashmap_type_info[h->type].entry_size * n_buckets(h)); 389 : n_buckets(h) + idx - from; 424 for ( ; idx < n_buckets(h); idx++) 473 return (idx + 1U) % n_buckets(h); 477 return (n_buckets(h) + idx - 1U) % n_buckets( [all...] |
Completed in 27 milliseconds