Home
last modified time | relevance | path

Searched refs:LONG_BITS (Results 1 – 2 of 2) sorted by relevance

/third_party/libinput/src/
Dutil-bits.h36 #define LONG_BITS (sizeof(long) * 8) macro
37 #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()
/third_party/libevdev/libevdev/
Dlibevdev-util.h13 #define LONG_BITS (sizeof(long) * 8) macro
14 #define NLONGS(x) (((x) + LONG_BITS - 1) / LONG_BITS)
45 return !!(array[bit / LONG_BITS] & (1LL << (bit % LONG_BITS))); in bit_is_set()
51 array[bit / LONG_BITS] |= (1LL << (bit % LONG_BITS)); in set_bit()
57 array[bit / LONG_BITS] &= ~(1LL << (bit % LONG_BITS)); in clear_bit()