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

Function check_mask

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

Source from the content-addressed store, hash-verified

95}
96
97static bool check_mask(struct htable *ht, uint64_t val[], unsigned num)
98{
99 uint64_t i;
100
101 for (i = 0; i < num; i++) {
102 if (((uintptr_t)&val[i] & ht->common_mask) != ht->common_bits)
103 return false;
104 }
105 return true;
106}
107
108int main(void)
109{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected