Home
last modified time | relevance | path

Searched refs:BITS_PER_LONG (Results 1 – 17 of 17) sorted by relevance

/external/igt-gpu-tools/lib/
Digt_primes.c39 #define BITS_PER_LONG (sizeof(long)*BITS_PER_CHAR) macro
41 #define BITMAP_FIRST_WORD_MASK(start) (~0UL << ((start) & (BITS_PER_LONG - 1)))
42 #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1)))
64 return 1UL << (nr % BITS_PER_LONG); in __bit__()
69 addr[nr / BITS_PER_LONG] |= __bit__(nr); in set_bit()
74 addr[nr / BITS_PER_LONG] &= ~__bit__(nr); in clear_bit()
79 return addr[nr / BITS_PER_LONG] & __bit__(nr); in test_bit()
92 tmp = addr[start / BITS_PER_LONG] ^ invert; in __find_next_bit()
96 start = round_down(start, BITS_PER_LONG); in __find_next_bit()
99 start += BITS_PER_LONG; in __find_next_bit()
[all …]
/external/ltp/testcases/kernel/mem/include/
Dmem.h17 #define BITS_PER_LONG (8 * sizeof(long)) macro
21 array[node / BITS_PER_LONG] |= 1UL << (node % BITS_PER_LONG); in set_node()
28 for (i = 0; i < MAXNODES / BITS_PER_LONG; i++) in clean_node()
/external/ethtool/
Dinternal.h82 #define BITS_PER_LONG (BITS_PER_BYTE * sizeof(long)) macro
84 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG)
88 addr[nr / BITS_PER_LONG] |= 1UL << (nr % BITS_PER_LONG); in set_bit()
93 addr[nr / BITS_PER_LONG] &= ~(1UL << (nr % BITS_PER_LONG)); in clear_bit()
98 return !!((1UL << (nr % BITS_PER_LONG)) & in test_bit()
99 (((unsigned long *)addr)[nr / BITS_PER_LONG])); in test_bit()
Drxclass.c437 slot_num = loc / BITS_PER_LONG; in rmgr_find_empty_slot()
448 if (!~(rmgr->slot[slot_num] | (~1UL << rmgr->size % BITS_PER_LONG))) { in rmgr_find_empty_slot()
449 loc -= 1 + (loc % BITS_PER_LONG); in rmgr_find_empty_slot()
458 loc -= BITS_PER_LONG; in rmgr_find_empty_slot()
/external/linux-kselftest/tools/testing/selftests/kvm/lib/
Dkvm_util_internal.h19 #ifndef BITS_PER_LONG
20 #define BITS_PER_LONG (BITS_PER_BYTE * sizeof(long)) macro
24 #define BITS_TO_LONGS(nr) DIV_ROUND_UP(nr, BITS_PER_LONG)
/external/erofs-utils/include/erofs/
Ddefs.h148 #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
149 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
156 #define BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__) macro
158 #define BITS_PER_LONG __WORDSIZE macro
Dhashtable.h27 #if BITS_PER_LONG == 32
30 #elif BITS_PER_LONG == 64
258 #if BITS_PER_LONG == 64 in hash_64()
/external/autotest/client/site_tests/hardware_Keyboard/src/
Devtest.c302 #define BITS_PER_LONG (sizeof(long) * 8) macro
303 #define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1)
304 #define OFF(x) ((x)%BITS_PER_LONG)
306 #define LONG(x) ((x)/BITS_PER_LONG)
/external/ltp/testcases/kernel/mem/ksm/
Dksm02.c66 unsigned long nmask[MAXNODES / BITS_PER_LONG] = { 0 }; in verify_ksm()
Dksm04.c67 unsigned long nmask[MAXNODES / BITS_PER_LONG] = { 0 }; in verify_ksm()
/external/adhd/cras/src/server/
Dcras_alsa_jack.c151 #define BITS_PER_LONG (sizeof(long) * BITS_PER_BYTE) macro
152 #define NBITS(x) ((((x)-1) / BITS_PER_LONG) + 1)
153 #define OFF(x) ((x) % BITS_PER_LONG)
155 #define LONG(x) ((x) / BITS_PER_LONG)
/external/adhd/cras/src/tests/
Dalsa_jack_unittest.cc29 #define BITS_PER_LONG (sizeof(long) * BITS_PER_BYTE) macro
30 #define NBITS(x) ((((x)-1) / BITS_PER_LONG) + 1)
31 #define OFF(x) ((x) % BITS_PER_LONG)
33 #define LONG(x) ((x) / BITS_PER_LONG)
/external/ltp/testcases/kernel/mem/cpuset/
Dcpuset01.c51 unsigned long nmask[MAXNODES / BITS_PER_LONG] = { 0 }; in test_cpuset()
/external/f2fs-tools/include/
Df2fs_fs.h545 #define BITS_PER_LONG 64 macro
547 #define BITS_PER_LONG 32 macro
550 #define BIT_MASK(nr) (1 << (nr % BITS_PER_LONG))
551 #define BIT_WORD(nr) (nr / BITS_PER_LONG)
/external/linux-kselftest/tools/testing/selftests/kvm/
Ddirty_log_test.c41 # define BITOP_LE_SWIZZLE ((BITS_PER_LONG-1) & ~0x7)
/external/ltp/testcases/kernel/mem/lib/
Dmem.c170 unsigned long nmask[MAXNODES / BITS_PER_LONG] = { 0 }; in set_global_mempolicy()
535 unsigned long nmask[MAXNODES / BITS_PER_LONG] = { 0 }; in test_ksm_merge_across_nodes()
/external/zstd/contrib/linux-kernel/test/include/linux/
Dxxhash.h127 #if BITS_PER_LONG == 64 in xxhash()