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

Function bitmap_empty

ccan/ccan/bitmap/bitmap.h:179–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179static inline bool bitmap_empty(const bitmap *b, unsigned long nbits)
180{
181 unsigned long i;
182
183 for (i = 0; i < BITMAP_HEADWORDS(nbits); i++) {
184 if (b[i].w != 0)
185 return false;
186 }
187 if (BITMAP_HASTAIL(nbits) && (BITMAP_TAIL(b, nbits) != 0))
188 return false;
189
190 return true;
191}
192
193unsigned long bitmap_ffs(const bitmap *b, unsigned long n, unsigned long m);
194

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