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

Function bitmap_realloc0

ccan/ccan/bitmap/bitmap.h:223–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221}
222
223static inline bitmap *bitmap_realloc0(bitmap *b,
224 unsigned long obits, unsigned long nbits)
225{
226 b = realloc(b, bitmap_sizeof(nbits));
227
228 if ((nbits > obits) && b)
229 bitmap_zero_range(b, obits, nbits);
230
231 return b;
232}
233
234static inline bitmap *bitmap_realloc1(bitmap *b,
235 unsigned long obits, unsigned long nbits)

Callers 1

test_reallocFunction · 0.85

Calls 2

bitmap_sizeofFunction · 0.85
bitmap_zero_rangeFunction · 0.85

Tested by 1

test_reallocFunction · 0.68