Lines Matching refs:bundles

70 		zassert_equal(ba->bundles[i], FREE,  in validate_bitarray_define()
110 if (ba->bundles[i] != 0) { in bitarray_bundles_is_zero()
142 bundle_idx = bit / (sizeof(ba.bundles[0]) * 8); in ZTEST()
143 bit_idx_in_bundle = bit % (sizeof(ba.bundles[0]) * 8); in ZTEST()
148 zassert_equal(ba.bundles[bundle_idx], BIT(bit_idx_in_bundle), in ZTEST()
150 zassert_not_equal(sys_bitfield_test_bit((mem_addr_t)ba.bundles, bit), in ZTEST()
162 zassert_equal(ba.bundles[bundle_idx], 0, in ZTEST()
164 zassert_equal(sys_bitfield_test_bit((mem_addr_t)ba.bundles, bit), in ZTEST()
180 zassert_equal(ba.bundles[bundle_idx], BIT(bit_idx_in_bundle), in ZTEST()
182 zassert_not_equal(sys_bitfield_test_bit((mem_addr_t)ba.bundles, bit), in ZTEST()
191 zassert_equal(ba.bundles[bundle_idx], BIT(bit_idx_in_bundle), in ZTEST()
193 zassert_not_equal(sys_bitfield_test_bit((mem_addr_t)ba.bundles, bit), in ZTEST()
202 zassert_equal(ba.bundles[bundle_idx], 0, in ZTEST()
205 zassert_equal(sys_bitfield_test_bit((mem_addr_t)ba.bundles, bit), in ZTEST()
214 zassert_equal(ba.bundles[bundle_idx], 0, in ZTEST()
217 zassert_equal(sys_bitfield_test_bit((mem_addr_t)ba.bundles, bit), in ZTEST()
292 ba_128.bundles[0] = 0x0F0F070F; in alloc_and_free_predefined()
293 ba_128.bundles[1] = 0x0F0F0F0F; in alloc_and_free_predefined()
294 ba_128.bundles[2] = 0x0F0F0F0F; in alloc_and_free_predefined()
295 ba_128.bundles[3] = 0x0F0F0000; in alloc_and_free_predefined()
306 zassert_true(cmp_u32_arrays(ba_128.bundles, ba_128_expected, ba_128.num_bundles), in alloc_and_free_predefined()
314 zassert_true(cmp_u32_arrays(ba_128.bundles, ba_128_expected, ba_128.num_bundles), in alloc_and_free_predefined()
320 zassert_true(cmp_u32_arrays(ba_128.bundles, ba_128_expected, ba_128.num_bundles), in alloc_and_free_predefined()
325 zassert_true(cmp_u32_arrays(ba_128.bundles, ba_128_expected, ba_128.num_bundles), in alloc_and_free_predefined()
330 zassert_true(cmp_u32_arrays(ba_128.bundles, ba_128_expected, ba_128.num_bundles), in alloc_and_free_predefined()
337 zassert_true(cmp_u32_arrays(ba_128.bundles, ba_128_expected, ba_128.num_bundles), in alloc_and_free_predefined()
341 ba_128.bundles[0] = 0x7FFFFFFF; in alloc_and_free_predefined()
342 ba_128.bundles[1] = 0xFFFFFFFF; in alloc_and_free_predefined()
343 ba_128.bundles[2] = 0x00000000; in alloc_and_free_predefined()
344 ba_128.bundles[3] = 0x00000000; in alloc_and_free_predefined()
354 zassert_true(cmp_u32_arrays(ba_128.bundles, ba_128_expected, ba_128.num_bundles), in alloc_and_free_predefined()
380 popcnt += count_bits(ba->bundles[idx]); in get_bitarray_popcnt()
462 ba.bundles[cnt] = 0x0F0F0F0F; in alloc_and_free_interval()
538 ba.bundles[0] = 0x00000005; in ZTEST()
539 ba.bundles[1] = 0x00000000; in ZTEST()
540 ba.bundles[2] = 0x00000000; in ZTEST()
541 ba.bundles[3] = 0x00000000; in ZTEST()
573 ba.bundles[0] = 0x00000001; in ZTEST()
574 ba.bundles[1] = 0x00000000; in ZTEST()
575 ba.bundles[2] = 0x00000000; in ZTEST()
576 ba.bundles[3] = 0x80000000; in ZTEST()
636 ba.bundles[0] = 0x80001001; in ZTEST()
637 ba.bundles[1] = 0x10000008; in ZTEST()
638 ba.bundles[2] = 0xFFFFFFFF; in ZTEST()
639 ba.bundles[3] = 0x00000000; in ZTEST()
641 bb.bundles[0] = 0x80010001; in ZTEST()
642 bb.bundles[1] = 0x10000008; in ZTEST()
643 bb.bundles[2] = 0xFFFFFFFF; in ZTEST()
644 bb.bundles[3] = 0x00000000; in ZTEST()
648 zassert_equal(ba.bundles[0], 0x00011000, "sys_bitarray_xor() result unexpected: %x", in ZTEST()
649 ba.bundles[0]); in ZTEST()
650 zassert_equal(bb.bundles[0], 0x80010001, "sys_bitarray_xor() result unexpected: %x", in ZTEST()
651 bb.bundles[0]); in ZTEST()
653 zassert_equal(ba.bundles[1], 0x10000008, "sys_bitarray_xor() result unexpected: %x", in ZTEST()
654 ba.bundles[1]); in ZTEST()
655 zassert_equal(bb.bundles[1], 0x10000008, "sys_bitarray_xor() result unexpected: %x", in ZTEST()
656 bb.bundles[1]); in ZTEST()
658 zassert_equal(ba.bundles[2], 0xFFFFFFFF, "sys_bitarray_xor() result unexpected: %x", in ZTEST()
659 ba.bundles[2]); in ZTEST()
660 zassert_equal(bb.bundles[2], 0xFFFFFFFF, "sys_bitarray_xor() result unexpected: %x", in ZTEST()
661 bb.bundles[2]); in ZTEST()
663 zassert_equal(ba.bundles[3], 0x00000000, "sys_bitarray_xor() result unexpected: %x", in ZTEST()
664 ba.bundles[3]); in ZTEST()
665 zassert_equal(bb.bundles[3], 0x00000000, "sys_bitarray_xor() result unexpected: %x", in ZTEST()
666 bb.bundles[3]); in ZTEST()
669 ba.bundles[0] = 0x80001001; in ZTEST()
670 ba.bundles[1] = 0x10000008; in ZTEST()
671 ba.bundles[2] = 0xFFFFFFFF; in ZTEST()
672 ba.bundles[3] = 0x00000000; in ZTEST()
674 bb.bundles[0] = 0x80010001; in ZTEST()
675 bb.bundles[1] = 0x10000008; in ZTEST()
676 bb.bundles[2] = 0xFFFFFFFF; in ZTEST()
677 bb.bundles[3] = 0x00000000; in ZTEST()
681 zassert_equal(ba.bundles[0], 0x80001000, "sys_bitarray_xor() result unexpected: %x", in ZTEST()
682 ba.bundles[0]); in ZTEST()
683 zassert_equal(bb.bundles[0], 0x80010001, "sys_bitarray_xor() result unexpected: %x", in ZTEST()
684 bb.bundles[0]); in ZTEST()
687 ba.bundles[0] = 0x80001001; in ZTEST()
688 ba.bundles[1] = 0x10000008; in ZTEST()
689 ba.bundles[2] = 0xFFFFFFFF; in ZTEST()
690 ba.bundles[3] = 0x00000000; in ZTEST()
692 bb.bundles[0] = 0x80010001; in ZTEST()
693 bb.bundles[1] = 0x10000008; in ZTEST()
694 bb.bundles[2] = 0xFFFFFFFF; in ZTEST()
695 bb.bundles[3] = 0x00000000; in ZTEST()
699 zassert_equal(ba.bundles[0], 0x00011001, "sys_bitarray_xor() result unexpected: %x", in ZTEST()
700 ba.bundles[0]); in ZTEST()
701 zassert_equal(bb.bundles[0], 0x80010001, "sys_bitarray_xor() result unexpected: %x", in ZTEST()
702 bb.bundles[0]); in ZTEST()
707 ba.bundles[0] = 0x00000000; in ZTEST()
708 ba.bundles[1] = 0xFFFFFFFF; in ZTEST()
709 ba.bundles[2] = 0xFFFFFFFF; in ZTEST()
710 ba.bundles[3] = 0xFFFFFFFF; in ZTEST()
712 bb.bundles[0] = 0x00000000; in ZTEST()
713 bb.bundles[1] = 0xFFFFFFFF; in ZTEST()
714 bb.bundles[2] = 0xFFFFFFFF; in ZTEST()
715 bb.bundles[3] = 0xFFFFFFFF; in ZTEST()
719 zassert_equal(ba.bundles[0], 0x00000000, "sys_bitarray_xor() result unexpected: %x", in ZTEST()
720 ba.bundles[0]); in ZTEST()
721 zassert_equal(ba.bundles[1], 0x00000001, "sys_bitarray_xor() result unexpected: %x", in ZTEST()
722 ba.bundles[1]); in ZTEST()
723 zassert_equal(ba.bundles[2], 0x00000000, "sys_bitarray_xor() result unexpected: %x", in ZTEST()
724 ba.bundles[2]); in ZTEST()
725 zassert_equal(ba.bundles[3], 0x80000000, "sys_bitarray_xor() result unexpected: %x", in ZTEST()
726 ba.bundles[3]); in ZTEST()
730 ba.bundles[0] = 0x00000000; in ZTEST()
731 ba.bundles[1] = 0x00000000; in ZTEST()
732 ba.bundles[2] = 0x00000000; in ZTEST()
733 ba.bundles[3] = 0x00000000; in ZTEST()
735 bb.bundles[0] = 0x00000000; in ZTEST()
736 bb.bundles[1] = 0x00000000; in ZTEST()
737 bb.bundles[2] = 0x00000000; in ZTEST()
738 bb.bundles[3] = 0x00000000; in ZTEST()
740 bc.bundles[0] = 0x00000000; in ZTEST()
741 bc.bundles[1] = 0x00000000; in ZTEST()
742 bc.bundles[2] = 0x00000000; in ZTEST()
743 bc.bundles[3] = 0x00000000; in ZTEST()
744 bc.bundles[4] = 0x00000000; in ZTEST()
778 ba.bundles[0] = 0x80000001; in ZTEST()
779 ba.bundles[1] = 0x80000001; in ZTEST()
780 ba.bundles[2] = 0x80000001; in ZTEST()
781 ba.bundles[3] = 0x80000001; in ZTEST()
886 ba.bundles[0] = 0xFF0F0F0F; in ZTEST()
887 ba.bundles[1] = 0x0F0F0FFF; in ZTEST()
901 ba.bundles[0] = ~ba.bundles[0]; in ZTEST()
902 ba.bundles[1] = ~ba.bundles[1]; in ZTEST()
924 ba.bundles[0] = 0xFF0F0F0F; in ZTEST()
925 ba.bundles[1] = 0x0F0F0FFF; in ZTEST()
933 zassert_true(cmp_u32_arrays(ba.bundles, ba_expected, ba.num_bundles), in ZTEST()
939 zassert_true(cmp_u32_arrays(ba.bundles, ba_expected, ba.num_bundles), in ZTEST()
945 zassert_true(cmp_u32_arrays(ba.bundles, ba_expected, ba.num_bundles), in ZTEST()
952 zassert_true(cmp_u32_arrays(ba.bundles, ba_expected, ba.num_bundles), in ZTEST()
959 zassert_true(cmp_u32_arrays(ba.bundles, ba_expected, ba.num_bundles), in ZTEST()
964 zassert_true(cmp_u32_arrays(ba.bundles, ba_expected, ba.num_bundles), in ZTEST()
969 zassert_true(cmp_u32_arrays(ba.bundles, ba_expected, ba.num_bundles), in ZTEST()
974 zassert_true(cmp_u32_arrays(ba.bundles, ba_expected, ba.num_bundles), in ZTEST()
979 zassert_true(cmp_u32_arrays(ba.bundles, ba_expected, ba.num_bundles), in ZTEST()
985 bw.bundles[0] = 0xFF0F0F0F; in ZTEST()
986 bw.bundles[1] = 0xF0000000; in ZTEST()
987 bw.bundles[2] = 0xFFFFFFFF; in ZTEST()
988 bw.bundles[3] = 0x0000000F; in ZTEST()
993 bw.bundles[2] = 0xFFFEEFFF; in ZTEST()
998 bw.bundles[1] = 0x0FFFFFFF; in ZTEST()
999 bw.bundles[2] = 0x00000000; in ZTEST()
1000 bw.bundles[3] = 0xFFFFFFF0; in ZTEST()
1005 bw.bundles[2] = 0x00011000; in ZTEST()