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

Function bitmap_full

ccan/ccan/bitmap/bitmap.h:164–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164static inline bool bitmap_full(const bitmap *b, unsigned long nbits)
165{
166 unsigned long i;
167
168 for (i = 0; i < BITMAP_HEADWORDS(nbits); i++) {
169 if (b[i].w != -1UL)
170 return false;
171 }
172 if (BITMAP_HASTAIL(nbits) &&
173 (BITMAP_TAIL(b, nbits) != BITMAP_TAILBITS(nbits)))
174 return false;
175
176 return true;
177}
178
179static inline bool bitmap_empty(const bitmap *b, unsigned long nbits)
180{

Callers 3

test_basic_allocFunction · 0.85
test_reallocFunction · 0.85
test_sizesFunction · 0.85

Calls

no outgoing calls

Tested by 3

test_basic_allocFunction · 0.68
test_reallocFunction · 0.68
test_sizesFunction · 0.68