• Home
  • Raw
  • Download

Lines Matching refs:ebitmap_set_bit

24 			rc = ebitmap_set_bit(e, i, 1);  in ebitmap_init_random()
63 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 10, 1), 0); in test_ebitmap_cmp()
65 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 10, 1), 0); in test_ebitmap_cmp()
68 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 63, 1), 0); in test_ebitmap_cmp()
70 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 63, 1), 0); in test_ebitmap_cmp()
73 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 64, 1), 0); in test_ebitmap_cmp()
75 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 64, 1), 0); in test_ebitmap_cmp()
78 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 1022, 1), 0); in test_ebitmap_cmp()
80 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 1022, 1), 0); in test_ebitmap_cmp()
83 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 1023, 1), 0); in test_ebitmap_cmp()
85 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 1023, 1), 0); in test_ebitmap_cmp()
88 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 1024, 1), 0); in test_ebitmap_cmp()
90 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 1024, 1), 0); in test_ebitmap_cmp()
93 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 1025, 1), 0); in test_ebitmap_cmp()
95 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 1025, 1), 0); in test_ebitmap_cmp()
98 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 255, 1), 0); in test_ebitmap_cmp()
100 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 255, 1), 0); in test_ebitmap_cmp()
103 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 256, 1), 0); in test_ebitmap_cmp()
105 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 256, 1), 0); in test_ebitmap_cmp()
108 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 639, 1), 0); in test_ebitmap_cmp()
110 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 639, 1), 0); in test_ebitmap_cmp()
113 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 640, 1), 0); in test_ebitmap_cmp()
115 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 640, 1), 0); in test_ebitmap_cmp()
118 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 900, 1), 0); in test_ebitmap_cmp()
120 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 900, 1), 0); in test_ebitmap_cmp()
144 CU_ASSERT_EQUAL(ebitmap_set_bit(&e, UINT32_MAX, 1), -EINVAL); in test_ebitmap_set_and_get()
146 CU_ASSERT_EQUAL(ebitmap_set_bit(&e, 10, 0), 0); in test_ebitmap_set_and_get()
152 CU_ASSERT_EQUAL(ebitmap_set_bit(&e, 10, 1), 0); in test_ebitmap_set_and_get()
158 CU_ASSERT_EQUAL(ebitmap_set_bit(&e, 100, 1), 0); in test_ebitmap_set_and_get()
164 CU_ASSERT_EQUAL(ebitmap_set_bit(&e, 50, 1), 0); in test_ebitmap_set_and_get()
170 CU_ASSERT_EQUAL(ebitmap_set_bit(&e, 1023, 1), 0); in test_ebitmap_set_and_get()
176 CU_ASSERT_EQUAL(ebitmap_set_bit(&e, 1024, 1), 0); in test_ebitmap_set_and_get()
182 CU_ASSERT_EQUAL(ebitmap_set_bit(&e, 1050, 1), 0); in test_ebitmap_set_and_get()
217 CU_ASSERT_EQUAL(ebitmap_set_bit(&e, 1024, 0), 0); in test_ebitmap_set_and_get()
223 CU_ASSERT_EQUAL(ebitmap_set_bit(&e, 1050, 0), 0); in test_ebitmap_set_and_get()
229 CU_ASSERT_EQUAL(ebitmap_set_bit(&e, 100, 0), 0); in test_ebitmap_set_and_get()
235 CU_ASSERT_EQUAL(ebitmap_set_bit(&e, 10, 0), 0); in test_ebitmap_set_and_get()
241 CU_ASSERT_EQUAL(ebitmap_set_bit(&e, 50, 0), 0); in test_ebitmap_set_and_get()
247 CU_ASSERT_EQUAL(ebitmap_set_bit(&e, 1023, 0), 0); in test_ebitmap_set_and_get()
296 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 10, 1), 0); in test_ebitmap_or()
297 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 100, 1), 0); in test_ebitmap_or()
298 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 101, 1), 0); in test_ebitmap_or()
299 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 318, 1), 0); in test_ebitmap_or()
300 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 319, 1), 0); in test_ebitmap_or()
301 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 383, 1), 0); in test_ebitmap_or()
302 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 384, 1), 0); in test_ebitmap_or()
303 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 449, 1), 0); in test_ebitmap_or()
304 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 1013, 1), 0); in test_ebitmap_or()
306 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 11, 1), 0); in test_ebitmap_or()
307 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 101, 1), 0); in test_ebitmap_or()
308 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 430, 1), 0); in test_ebitmap_or()
309 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 665, 1), 0); in test_ebitmap_or()
311 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 10, 1), 0); in test_ebitmap_or()
312 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 11, 1), 0); in test_ebitmap_or()
313 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 100, 1), 0); in test_ebitmap_or()
314 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 101, 1), 0); in test_ebitmap_or()
315 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 318, 1), 0); in test_ebitmap_or()
316 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 319, 1), 0); in test_ebitmap_or()
317 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 383, 1), 0); in test_ebitmap_or()
318 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 384, 1), 0); in test_ebitmap_or()
319 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 430, 1), 0); in test_ebitmap_or()
320 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 449, 1), 0); in test_ebitmap_or()
321 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 665, 1), 0); in test_ebitmap_or()
322 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 1013, 1), 0); in test_ebitmap_or()
395 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 10, 1), 0); in test_ebitmap_and()
396 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 100, 1), 0); in test_ebitmap_and()
397 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 101, 1), 0); in test_ebitmap_and()
398 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 318, 1), 0); in test_ebitmap_and()
399 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 319, 1), 0); in test_ebitmap_and()
400 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 383, 1), 0); in test_ebitmap_and()
401 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 384, 1), 0); in test_ebitmap_and()
402 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 449, 1), 0); in test_ebitmap_and()
403 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 1013, 1), 0); in test_ebitmap_and()
405 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 11, 1), 0); in test_ebitmap_and()
406 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 101, 1), 0); in test_ebitmap_and()
407 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 319, 1), 0); in test_ebitmap_and()
408 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 665, 1), 0); in test_ebitmap_and()
410 CU_ASSERT_EQUAL(ebitmap_set_bit(&e12, 101, 1), 0); in test_ebitmap_and()
411 CU_ASSERT_EQUAL(ebitmap_set_bit(&e12, 319, 1), 0); in test_ebitmap_and()
413 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 10, 1), 0); in test_ebitmap_and()
414 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 11, 1), 0); in test_ebitmap_and()
415 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 100, 1), 0); in test_ebitmap_and()
416 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 101, 1), 0); in test_ebitmap_and()
417 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 318, 1), 0); in test_ebitmap_and()
418 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 319, 1), 0); in test_ebitmap_and()
419 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 383, 1), 0); in test_ebitmap_and()
420 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 384, 1), 0); in test_ebitmap_and()
421 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 430, 1), 0); in test_ebitmap_and()
422 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 449, 1), 0); in test_ebitmap_and()
423 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 665, 1), 0); in test_ebitmap_and()
424 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 1013, 1), 0); in test_ebitmap_and()
515 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 63, 1), 0); in test_ebitmap_and()
516 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 191, 1), 0); in test_ebitmap_and()
517 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 192, 1), 0); in test_ebitmap_and()
518 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 318, 1), 0); in test_ebitmap_and()
519 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 319, 1), 0); in test_ebitmap_and()
521 CU_ASSERT_EQUAL(ebitmap_set_bit(&e6, 64, 1), 0); in test_ebitmap_and()
522 CU_ASSERT_EQUAL(ebitmap_set_bit(&e6, 192, 1), 0); in test_ebitmap_and()
523 CU_ASSERT_EQUAL(ebitmap_set_bit(&e6, 319, 1), 0); in test_ebitmap_and()
524 CU_ASSERT_EQUAL(ebitmap_set_bit(&e6, 320, 1), 0); in test_ebitmap_and()
526 CU_ASSERT_EQUAL(ebitmap_set_bit(&e56, 192, 1), 0); in test_ebitmap_and()
527 CU_ASSERT_EQUAL(ebitmap_set_bit(&e56, 319, 1), 0); in test_ebitmap_and()
549 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 1, 1), 0); in test_ebitmap_xor()
550 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 5, 1), 0); in test_ebitmap_xor()
551 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 10, 1), 0); in test_ebitmap_xor()
553 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 1, 1), 0); in test_ebitmap_xor()
554 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 3, 1), 0); in test_ebitmap_xor()
555 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 6, 1), 0); in test_ebitmap_xor()
556 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 9, 1), 0); in test_ebitmap_xor()
558 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 3, 1), 0); in test_ebitmap_xor()
559 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 5, 1), 0); in test_ebitmap_xor()
560 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 6, 1), 0); in test_ebitmap_xor()
561 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 9, 1), 0); in test_ebitmap_xor()
562 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 10, 1), 0); in test_ebitmap_xor()
637 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 63, 1), 0); in test_ebitmap_xor()
638 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 191, 1), 0); in test_ebitmap_xor()
639 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 192, 1), 0); in test_ebitmap_xor()
640 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 318, 1), 0); in test_ebitmap_xor()
641 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 319, 1), 0); in test_ebitmap_xor()
643 CU_ASSERT_EQUAL(ebitmap_set_bit(&e6, 64, 1), 0); in test_ebitmap_xor()
644 CU_ASSERT_EQUAL(ebitmap_set_bit(&e6, 192, 1), 0); in test_ebitmap_xor()
645 CU_ASSERT_EQUAL(ebitmap_set_bit(&e6, 319, 1), 0); in test_ebitmap_xor()
646 CU_ASSERT_EQUAL(ebitmap_set_bit(&e6, 320, 1), 0); in test_ebitmap_xor()
648 CU_ASSERT_EQUAL(ebitmap_set_bit(&e56, 63, 1), 0); in test_ebitmap_xor()
649 CU_ASSERT_EQUAL(ebitmap_set_bit(&e56, 64, 1), 0); in test_ebitmap_xor()
650 CU_ASSERT_EQUAL(ebitmap_set_bit(&e56, 191, 1), 0); in test_ebitmap_xor()
651 CU_ASSERT_EQUAL(ebitmap_set_bit(&e56, 318, 1), 0); in test_ebitmap_xor()
652 CU_ASSERT_EQUAL(ebitmap_set_bit(&e56, 320, 1), 0); in test_ebitmap_xor()
674 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 0, 1), 0); in test_ebitmap_not()
675 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 1, 1), 0); in test_ebitmap_not()
676 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 5, 1), 0); in test_ebitmap_not()
677 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 10, 1), 0); in test_ebitmap_not()
679 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 2, 1), 0); in test_ebitmap_not()
680 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 3, 1), 0); in test_ebitmap_not()
681 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 4, 1), 0); in test_ebitmap_not()
682 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 6, 1), 0); in test_ebitmap_not()
683 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 7, 1), 0); in test_ebitmap_not()
684 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 8, 1), 0); in test_ebitmap_not()
685 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 9, 1), 0); in test_ebitmap_not()
747 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 63, 1), 0); in test_ebitmap_not()
748 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 191, 1), 0); in test_ebitmap_not()
749 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 192, 1), 0); in test_ebitmap_not()
750 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 318, 1), 0); in test_ebitmap_not()
751 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 319, 1), 0); in test_ebitmap_not()
754 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5not, bit, 1), 0); in test_ebitmap_not()
756 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5not, bit, 0), 0); in test_ebitmap_not()
773 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5not, 317, 1), 0); in test_ebitmap_not()
804 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 10, 1), 0); in test_ebitmap_andnot()
805 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 100, 1), 0); in test_ebitmap_andnot()
806 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 101, 1), 0); in test_ebitmap_andnot()
807 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 430, 1), 0); in test_ebitmap_andnot()
808 CU_ASSERT_EQUAL(ebitmap_set_bit(&e1, 1013, 1), 0); in test_ebitmap_andnot()
810 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 11, 1), 0); in test_ebitmap_andnot()
811 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 101, 1), 0); in test_ebitmap_andnot()
812 CU_ASSERT_EQUAL(ebitmap_set_bit(&e2, 665, 1), 0); in test_ebitmap_andnot()
814 CU_ASSERT_EQUAL(ebitmap_set_bit(&e12, 10, 1), 0); in test_ebitmap_andnot()
815 CU_ASSERT_EQUAL(ebitmap_set_bit(&e12, 100, 1), 0); in test_ebitmap_andnot()
816 CU_ASSERT_EQUAL(ebitmap_set_bit(&e12, 430, 1), 0); in test_ebitmap_andnot()
817 CU_ASSERT_EQUAL(ebitmap_set_bit(&e12, 1013, 1), 0); in test_ebitmap_andnot()
819 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 10, 1), 0); in test_ebitmap_andnot()
820 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 11, 1), 0); in test_ebitmap_andnot()
821 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 100, 1), 0); in test_ebitmap_andnot()
822 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 101, 1), 0); in test_ebitmap_andnot()
823 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 430, 1), 0); in test_ebitmap_andnot()
824 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 665, 1), 0); in test_ebitmap_andnot()
825 CU_ASSERT_EQUAL(ebitmap_set_bit(&e3, 1013, 1), 0); in test_ebitmap_andnot()
915 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 63, 1), 0); in test_ebitmap_andnot()
916 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 191, 1), 0); in test_ebitmap_andnot()
917 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 192, 1), 0); in test_ebitmap_andnot()
918 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 318, 1), 0); in test_ebitmap_andnot()
919 CU_ASSERT_EQUAL(ebitmap_set_bit(&e5, 319, 1), 0); in test_ebitmap_andnot()
921 CU_ASSERT_EQUAL(ebitmap_set_bit(&e6, 64, 1), 0); in test_ebitmap_andnot()
922 CU_ASSERT_EQUAL(ebitmap_set_bit(&e6, 192, 1), 0); in test_ebitmap_andnot()
923 CU_ASSERT_EQUAL(ebitmap_set_bit(&e6, 319, 1), 0); in test_ebitmap_andnot()
924 CU_ASSERT_EQUAL(ebitmap_set_bit(&e6, 320, 1), 0); in test_ebitmap_andnot()
926 CU_ASSERT_EQUAL(ebitmap_set_bit(&e56, 63, 1), 0); in test_ebitmap_andnot()
927 CU_ASSERT_EQUAL(ebitmap_set_bit(&e56, 191, 1), 0); in test_ebitmap_andnot()
953 CU_ASSERT_EQUAL(ebitmap_set_bit(&e56, 318, 1), 0); in test_ebitmap_andnot()