Lines Matching refs:bit
14 * an explicitly specified starting bit position within
26 #define MAPBIT 1ULL /* a bit in the node bitmap */
56 static inline unsigned int ebitmap_next(ebitmap_node_t ** n, unsigned int bit)
58 if ((bit == ((*n)->startbit + MAPSIZE - 1)) && (*n)->next) {
63 return (bit + 1);
66 static inline int ebitmap_node_get_bit(ebitmap_node_t * n, unsigned int bit)
68 if (n->map & (MAPBIT << (bit - n->startbit)))
73 #define ebitmap_for_each_bit(e, n, bit) \
74 for (bit = ebitmap_start(e, &n); bit < ebitmap_length(e); bit = ebitmap_next(&n, bit)) \
87 extern int ebitmap_get_bit(const ebitmap_t * e, unsigned int bit);
88 extern int ebitmap_set_bit(ebitmap_t * e, unsigned int bit, int value);