Searched refs:NBITS (Results 1 – 3 of 3) sorted by relevance
27 #define Sbitset__nbytes(NBITS) \ argument28 (((NBITS) + CHAR_BIT - 1) / CHAR_BIT)33 #define Sbitset__last_byte_mask(NBITS) \ argument34 (UCHAR_MAX << (CHAR_BIT - 1 - ((NBITS) - 1) % CHAR_BIT))62 #define Sbitset__zero(SELF, NBITS) \ argument64 memset (SELF, 0, Sbitset__nbytes (NBITS)); \68 #define Sbitset__ones(SELF, NBITS) \ argument70 memset (SELF, UCHAR_MAX, Sbitset__nbytes (NBITS)); \74 #define Sbitset__or(SELF, OTHER1, OTHER2, NBITS) \ argument79 Sbitset end_self = ptr_self + Sbitset__nbytes (NBITS); \[all …]
378 #define NBITS(x) ((((x)-1)/(sizeof(long) * 8))+1) macro382 unsigned long evbit[NBITS(EV_MAX)] = { 0 }; in EV_IsJoystick()383 unsigned long keybit[NBITS(KEY_MAX)] = { 0 }; in EV_IsJoystick()384 unsigned long absbit[NBITS(ABS_MAX)] = { 0 }; in EV_IsJoystick()674 unsigned long keybit[NBITS(KEY_MAX)] = { 0 }; in EV_ConfigJoystick()675 unsigned long absbit[NBITS(ABS_MAX)] = { 0 }; in EV_ConfigJoystick()676 unsigned long relbit[NBITS(REL_MAX)] = { 0 }; in EV_ConfigJoystick()
552 #ifndef NBITS553 #define NBITS(x) ((((x) - 1) / (sizeof(long) * 8)) + 1) macro