Home
last modified time | relevance | path

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

/third_party/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
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/
Dlibbitmask.c39 #define bitsperlong (8 * sizeof(unsigned long)) macro
45 #define longsperbits(n) howmany(n, bitsperlong)
62 return (bmp->maskp[n / bitsperlong] >> (n % bitsperlong)) & 1; in _getbit()
72 bmp->maskp[n / bitsperlong] |= 1UL << (n % bitsperlong); in _setbit()
74 bmp->maskp[n / bitsperlong] &= in _setbit()
75 ~(1UL << (n % bitsperlong)); in _setbit()