Home
last modified time | relevance | path

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

/Zephyr-latest/tests/posix/signals/src/
Dmain.c84 WRITE_BIT(target.sig[1], (signo)-BITS_PER_LONG, 1); in ZTEST()
94 WRITE_BIT(target.sig[signo / BITS_PER_LONG], signo % BITS_PER_LONG, 1); in ZTEST()
145 WRITE_BIT(target.sig[1], (signo)-BITS_PER_LONG, 0); in ZTEST()
155 WRITE_BIT(target.sig[signo / BITS_PER_LONG], signo % BITS_PER_LONG, 0); in ZTEST()
185 set.sig[1] = BIT((SIGRTMIN)-BITS_PER_LONG); in ZTEST()
187 WRITE_BIT(set.sig[SIGRTMAX / BITS_PER_LONG], SIGRTMAX % BITS_PER_LONG, 1); in ZTEST()
/Zephyr-latest/subsys/testsuite/ztest/src/
Dztest_mock.c79 #define DEFINE_BITFIELD(name, bits) unsigned long(name)[DIV_ROUND_UP(bits, BITS_PER_LONG)]
84 const size_t words = DIV_ROUND_UP(bits, BITS_PER_LONG); in sys_bitfield_find_first_clear()
99 return cnt * BITS_PER_LONG; in sys_bitfield_find_first_clear()
102 (cnt * BITS_PER_LONG) + __builtin_ffsl(neg_bitmap) - 1; in sys_bitfield_find_first_clear()
/Zephyr-latest/lib/posix/options/
Dsignal.c14 #define SIGNO_WORD_IDX(_signo) (_signo / BITS_PER_LONG)
15 #define SIGNO_WORD_BIT(_signo) (_signo & BIT_MASK(LOG2(BITS_PER_LONG)))
/Zephyr-latest/include/zephyr/drivers/i3c/
Daddresses.h60 unsigned long slots[((I3C_MAX_ADDR + 1) * 2) / BITS_PER_LONG];
/Zephyr-latest/include/zephyr/sys/
Dutil.h57 # error Missing required predefined macros for BITS_PER_LONG calculation
70 #define BITS_PER_LONG (__CHAR_BIT__ * __SIZEOF_LONG__) macro
80 (((~0UL) - (1UL << (l)) + 1) & (~0UL >> (BITS_PER_LONG - 1 - (h))))
/Zephyr-latest/include/zephyr/posix/
Dsignal.h56 unsigned long sig[DIV_ROUND_UP(_NSIG, BITS_PER_LONG)];
/Zephyr-latest/include/zephyr/
Dkernel_structs.h36 #define PRIQ_BITMAP_SIZE (DIV_ROUND_UP(K_NUM_THREAD_PRIO, BITS_PER_LONG))
/Zephyr-latest/drivers/i3c/
Di3c_common.c50 idx = bitpos / BITS_PER_LONG; in i3c_addr_slots_set()
51 bitpos %= BITS_PER_LONG; in i3c_addr_slots_set()
76 idx = bitpos / BITS_PER_LONG; in i3c_addr_slots_status()
77 bitpos %= BITS_PER_LONG; in i3c_addr_slots_status()
/Zephyr-latest/arch/x86/zefi/
Defi.h33 #define EFI_STATUS(_status) (_status | BIT((BITS_PER_LONG-1)))