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

Function count_deleted

ccan/ccan/htable/tools/speed.c:85–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85static size_t count_deleted(const struct htable *ht)
86{
87 size_t i, delete_markers = 0;
88
89 for (i = 0; i < ((size_t)1 << ht->bits); i++) {
90 if (ht->table[i] == HTABLE_DELETED)
91 delete_markers++;
92 }
93 return delete_markers;
94}
95
96/* Nanoseconds per operation */
97static size_t normalize(const struct timeabs *start,

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected