Searched refs:LONG_BITS (Results 1 – 3 of 3) sorted by relevance
36 #define LONG_BITS (sizeof(long) * 8) macro37 #define NLONGS(x) (((x) + LONG_BITS - 1) / LONG_BITS)66 return !!(array[bit / LONG_BITS] & (1ULL << (bit % LONG_BITS))); in long_bit_is_set()72 array[bit / LONG_BITS] |= (1ULL << (bit % LONG_BITS)); in long_set_bit()78 array[bit / LONG_BITS] &= ~(1ULL << (bit % LONG_BITS)); in long_clear_bit()
30 #define LONG_BITS (sizeof(long) * 8) macro31 #define NLONGS(x) (((x) + LONG_BITS - 1) / LONG_BITS)62 return !!(array[bit / LONG_BITS] & (1LL << (bit % LONG_BITS))); in bit_is_set()68 array[bit / LONG_BITS] |= (1LL << (bit % LONG_BITS)); in set_bit()74 array[bit / LONG_BITS] &= ~(1LL << (bit % LONG_BITS)); in clear_bit()
35 #define LONG_BITS (sizeof(long) * 8) macro36 #define NLONGS(x) (((x) + LONG_BITS - 1) / LONG_BITS)40 return (map[key / LONG_BITS] >> (key % LONG_BITS)) & 0x01; in getbit()