Home
last modified time | relevance | path

Searched refs:bitsperlong (Results 1 – 3 of 3) sorted by relevance

/external/ltp/testcases/kernel/syscalls/migrate_pages/
Dmigrate_pages_common.c31 b[n / bitsperlong] |= 1UL << (n % bitsperlong); in set_bit()
33 b[n / bitsperlong] &= ~(1UL << (n % bitsperlong)); in set_bit()
Dmigrate_pages_common.h28 #define bitsperlong (8 * sizeof(unsigned long)) macro
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
Dlibbitmask.c38 #define bitsperlong (8 * sizeof(unsigned long)) macro
44 #define longsperbits(n) howmany(n, bitsperlong)
61 return (bmp->maskp[n / bitsperlong] >> (n % bitsperlong)) & 1; in _getbit()
71 bmp->maskp[n / bitsperlong] |= 1UL << (n % bitsperlong); in _setbit()
73 bmp->maskp[n / bitsperlong] &= in _setbit()
74 ~(1UL << (n % bitsperlong)); in _setbit()