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

Function bitmap_bswap

ccan/ccan/bitmap/bitmap.h:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36static inline bitmap_word bitmap_bswap(bitmap_word w)
37{
38 if (BITMAP_WORD_BITS == 32)
39 return (ENDIAN_CAST bitmap_word)cpu_to_be32(w);
40 else if (BITMAP_WORD_BITS == 64)
41 return (ENDIAN_CAST bitmap_word)cpu_to_be64(w);
42}
43
44#define BITMAP_WORD(_bm, _n) ((_bm)[(_n) / BITMAP_WORD_BITS].w)
45#define BITMAP_WORDBIT(_n) \

Callers 3

bitmap_zero_rangeFunction · 0.85
bitmap_fill_rangeFunction · 0.85
bitmap_ffsFunction · 0.85

Calls 2

cpu_to_be32Function · 0.85
cpu_to_be64Function · 0.85

Tested by

no test coverage detected