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

Function refill_vals

ccan/ccan/htable/test/run-debug.c:56–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54
55#if 0
56static void refill_vals(struct htable *ht,
57 const uint64_t val[], unsigned int num)
58{
59 uint64_t i;
60
61 for (i = 0; i < num; i++) {
62 if (htable_get(ht, hash(&i, NULL), objcmp, &i))
63 continue;
64 htable_add(ht, hash(&val[i], NULL), &val[i]);
65 }
66}
67#endif
68
69static void find_vals(struct htable *ht,

Callers

nothing calls this directly

Calls 2

htable_getFunction · 0.85
hashFunction · 0.70

Tested by

no test coverage detected