Home
last modified time | relevance | path

Searched refs:ATOMIC_BITS (Results 1 – 2 of 2) sorted by relevance

/Zephyr-Core-3.5.0/include/zephyr/sys/
Datomic.h79 #define ATOMIC_BITS (sizeof(atomic_val_t) * 8) macro
80 #define ATOMIC_MASK(bit) BIT((unsigned long)(bit) & (ATOMIC_BITS - 1U))
81 #define ATOMIC_ELEM(addr, bit) ((addr) + ((bit) / ATOMIC_BITS))
93 #define ATOMIC_BITMAP_SIZE(num_bits) (1 + ((num_bits) - 1) / ATOMIC_BITS)
135 return (1 & (val >> (bit & (ATOMIC_BITS - 1)))) != 0; in atomic_test_bit()
/Zephyr-Core-3.5.0/tests/kernel/common/src/
Datomic.c224 for (i = 0; i < ATOMIC_BITS; i++) { in ZTEST_USER()
231 for (i = 0; i < ATOMIC_BITS; i++) { in ZTEST_USER()
240 for (i = 0; i < ATOMIC_BITS; i++) { in ZTEST_USER()
249 for (i = 0; i < ATOMIC_BITS; i++) { in ZTEST_USER()
257 for (i = 0; i < ATOMIC_BITS; i++) { in ZTEST_USER()
265 for (i = 0; i < ATOMIC_BITS; i++) { in ZTEST_USER()
273 for (i = 0; i < ATOMIC_BITS; i++) { in ZTEST_USER()