MCPcopy Create free account
hub / github.com/ElementsProject/lightning / ht_max

Function ht_max

ccan/ccan/htable/htable.c:90–93  ·  view source on GitHub ↗

Fill to 87.5% */

Source from the content-addressed store, hash-verified

88
89/* Fill to 87.5% */
90static inline size_t ht_max(const struct htable *ht)
91{
92 return ((size_t)7 << ht->bits) / 8;
93}
94
95/* Clean deleted if we're full, and more than 12.5% deleted */
96static inline size_t ht_max_deleted(const struct htable *ht)

Callers 8

htable_init_sizedFunction · 0.85
htable_add_Function · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 6

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68