D | bitfield.c | 14 #define BIT_INDEX(bit) ((3 - ((bit >> 3) & 0x3)) + 4*(bit >> 5)) argument 16 #define BIT_INDEX(bit) (bit >> 3) argument 18 #define BIT_VAL(bit) (1 << (bit & 0x7)) argument 41 unsigned int bit; in ZTEST() 46 for (bit = 0U; bit < 32; ++bit) { in ZTEST() 47 sys_set_bit((mem_addr_t)&b1, bit); in ZTEST() 49 zassert_equal(b1, (1 << bit), in ZTEST() 50 "sys_set_bit failed on bit %d\n", bit); in ZTEST() 52 zassert_true(sys_test_bit((mem_addr_t)&b1, bit), in ZTEST() 53 "sys_test_bit did not detect bit %d\n", bit); in ZTEST() [all …]
|