Home
last modified time | relevance | path

Searched refs:bitarray (Results 1 – 6 of 6) sorted by relevance

/Zephyr-latest/lib/utils/
Dbitarray.c29 static void setup_bundle_data(sys_bitarray_t *bitarray, in setup_bundle_data() argument
33 bd->sidx = offset / bundle_bitness(bitarray); in setup_bundle_data()
34 bd->soff = offset % bundle_bitness(bitarray); in setup_bundle_data()
36 bd->eidx = (offset + num_bits - 1) / bundle_bitness(bitarray); in setup_bundle_data()
37 bd->eoff = (offset + num_bits - 1) % bundle_bitness(bitarray); in setup_bundle_data()
65 static bool match_region(sys_bitarray_t *bitarray, size_t offset, in match_region() argument
76 setup_bundle_data(bitarray, bd, offset, num_bits); in match_region()
79 bundle = bitarray->bundles[bd->sidx]; in match_region()
98 bundle = bitarray->bundles[bd->sidx]; in match_region()
111 bundle = bitarray->bundles[bd->eidx]; in match_region()
[all …]
DCMakeLists.txt10 bitarray.c
/Zephyr-latest/include/zephyr/sys/
Dbitarray.h96 int sys_bitarray_set_bit(sys_bitarray_t *bitarray, size_t bit);
108 int sys_bitarray_clear_bit(sys_bitarray_t *bitarray, size_t bit);
121 int sys_bitarray_test_bit(sys_bitarray_t *bitarray, size_t bit, int *val);
134 int sys_bitarray_test_and_set_bit(sys_bitarray_t *bitarray, size_t bit, int *prev_val);
147 int sys_bitarray_test_and_clear_bit(sys_bitarray_t *bitarray, size_t bit, int *prev_val);
168 int sys_bitarray_alloc(sys_bitarray_t *bitarray, size_t num_bits,
206 int sys_bitarray_find_nth_set(sys_bitarray_t *bitarray, size_t n, size_t num_bits, size_t offset,
223 int sys_bitarray_popcount_region(sys_bitarray_t *bitarray, size_t num_bits, size_t offset,
241 int sys_bitarray_free(sys_bitarray_t *bitarray, size_t num_bits,
257 bool sys_bitarray_is_region_set(sys_bitarray_t *bitarray, size_t num_bits,
[all …]
/Zephyr-latest/tests/kernel/common/
DCMakeLists.txt14 src/bitarray.c
/Zephyr-latest/tests/kernel/common/src/
Dbitarray.c81 ZTEST(bitarray, test_bitarray_declare) in ZTEST() argument
128 ZTEST(bitarray, test_bitarray_set_clear) in ZTEST() argument
502 ZTEST(bitarray, test_bitarray_alloc_free) in ZTEST() argument
523 ZTEST(bitarray, test_bitarray_popcount_region) in ZTEST() argument
620 ZTEST(bitarray, test_bitarray_xor) in ZTEST() argument
763 ZTEST(bitarray, test_bitarray_find_nth_set) in ZTEST() argument
870 ZTEST(bitarray, test_bitarray_region_set_clear) in ZTEST() argument
1019 ZTEST(bitarray, test_ffs) in ZTEST() argument
1062 ZTEST_SUITE(bitarray, NULL, common_setup, NULL, NULL, NULL);
/Zephyr-latest/boards/qemu/x86/
Dqemu_x86_tiny.ld188 LIB_ZEPHYR_OBJECT_FILE_IN_SECT(lsect, bitarray) \