Home
last modified time | relevance | path

Searched refs:LONG_BITS (Results 1 – 3 of 3) 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.h30 #define LONG_BITS (sizeof(long) * 8) macro
31 #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()
/third_party/mtdev/src/
Dcaps.c35 #define LONG_BITS (sizeof(long) * 8) macro
36 #define NLONGS(x) (((x) + LONG_BITS - 1) / LONG_BITS)
40 return (map[key / LONG_BITS] >> (key % LONG_BITS)) & 0x01; in getbit()