Home
last modified time | relevance | path

Searched refs:BITS_PER_LONG (Results 1 – 16 of 16) 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.h22 #define BITS_PER_LONG (8 * sizeof(long)) macro
26 array[node / BITS_PER_LONG] |= 1UL << (node % BITS_PER_LONG); in set_node()
33 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/bpftool/include/linux/
Dbitops.h6 #ifndef BITS_PER_LONG
7 # define BITS_PER_LONG __WORDSIZE macro
/external/erofs-utils/include/erofs/
Ddefs.h157 #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
158 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
165 #define BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__) macro
167 #define BITS_PER_LONG __WORDSIZE macro
Dhashtable.h30 #if BITS_PER_LONG == 32
33 #elif BITS_PER_LONG == 64
261 #if BITS_PER_LONG == 64 in hash_64()
/external/exfatprogs/lib/
Dlibexfat.c23 #define BITS_PER_LONG (sizeof(long) * CHAR_BIT) macro
26 #define BITOP_LE_SWIZZLE ((BITS_PER_LONG - 1) & ~0x7)
31 #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG))
32 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG)
/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.c64 unsigned long nmask[MAXNODES / BITS_PER_LONG] = { 0 }; in verify_ksm()
Dksm04.c64 unsigned long nmask[MAXNODES / BITS_PER_LONG] = { 0 }; in verify_ksm()
/external/rmi4utils/rmidevice/
Dhiddevice.cpp727 #define BITS_PER_LONG (sizeof(long) * 8) macro
728 #define NBITS(x) ((((x)-1)/BITS_PER_LONG)+1)
729 #define OFF(x) ((x)%BITS_PER_LONG)
731 #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.h573 #define BITS_PER_LONG 64 macro
575 #define BITS_PER_LONG 32 macro
578 #define BIT_MASK(nr) (1 << (nr % BITS_PER_LONG))
579 #define BIT_WORD(nr) (nr / BITS_PER_LONG)
/external/linux-kselftest/tools/testing/selftests/kvm/
Ddirty_log_test.c45 # define BITOP_LE_SWIZZLE ((BITS_PER_LONG-1) & ~0x7)
/external/ltp/testcases/kernel/mem/lib/
Dmem.c173 unsigned long nmask[MAXNODES / BITS_PER_LONG] = { 0 }; in set_global_mempolicy()