Home
last modified time | relevance | path

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

/Zephyr-latest/include/zephyr/sys/
Datomic.h76 #define ATOMIC_BITS (sizeof(atomic_val_t) * BITS_PER_BYTE) macro
77 #define ATOMIC_MASK(bit) BIT((unsigned long)(bit) & (ATOMIC_BITS - 1U))
78 #define ATOMIC_ELEM(addr, bit) ((addr) + ((bit) / ATOMIC_BITS))
90 #define ATOMIC_BITMAP_SIZE(num_bits) (ROUND_UP(num_bits, ATOMIC_BITS) / ATOMIC_BITS)
131 return (1 & (val >> (bit & (ATOMIC_BITS - 1)))) != 0; in atomic_test_bit()
/Zephyr-latest/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()
357 uint64_t overflowed_value = (uint64_t)1 << (ATOMIC_BITS - 1); in ZTEST()