4
#define BITS_PER_LONG (sizeof(unsigned long) * 8)
5
#define BYTES_PER_LONG (sizeof(long))
7
#define test_bit(i,p) ((p)[(i) / BITS_PER_LONG] & (1UL << ((i)%BITS_PER_LONG)))
8
#define set_bit(i,p) ((p)[(i) / BITS_PER_LONG] |= (1UL << ((i)%BITS_PER_LONG)))
9
#define clear_bit(i,p) ((p)[(i) / BITS_PER_LONG] &= ~(1UL << ((i)%BITS_PER_LONG)))
11
extern int find_first_bit(void *mask, int max);