Lines Matching full:l1
19 #define L1 BITS_PER_LONG macro
20 #define L2 (BITS_PER_LONG * L1)
233 hbitmap_test_init(data, L1, 0); in test_hbitmap_iter_empty()
242 hbitmap_test_check(data, L1 - 1); in test_hbitmap_iter_partial()
243 hbitmap_test_check(data, L1); in test_hbitmap_iter_partial()
244 hbitmap_test_check(data, L1 * 2 - 1); in test_hbitmap_iter_partial()
248 hbitmap_test_check(data, L2 + L1); in test_hbitmap_iter_partial()
249 hbitmap_test_check(data, L2 + L1 * 2 - 1); in test_hbitmap_iter_partial()
253 hbitmap_test_check(data, L2 * 2 + L1); in test_hbitmap_iter_partial()
254 hbitmap_test_check(data, L2 * 2 + L1 * 2 - 1); in test_hbitmap_iter_partial()
279 hbitmap_test_set(data, L1 - 1, 1); in test_hbitmap_get_some()
281 hbitmap_test_set(data, L1, 1); in test_hbitmap_get_some()
294 hbitmap_test_set(data, L1 - 1, 1); in test_hbitmap_set_one()
295 hbitmap_test_set(data, L1, 1); in test_hbitmap_set_one()
304 hbitmap_test_set(data, L1 - 1, 2); in test_hbitmap_set_two_elem()
305 hbitmap_test_set(data, L1 * 2 - 1, 4); in test_hbitmap_set_two_elem()
306 hbitmap_test_set(data, L1 * 4, L1 + 1); in test_hbitmap_set_two_elem()
307 hbitmap_test_set(data, L1 * 8 - 1, L1 + 1); in test_hbitmap_set_two_elem()
309 hbitmap_test_set(data, L2 + L1 - 1, 8); in test_hbitmap_set_two_elem()
310 hbitmap_test_set(data, L2 + L1 * 4, L1 + 1); in test_hbitmap_set_two_elem()
311 hbitmap_test_set(data, L2 + L1 * 8 - 1, L1 + 1); in test_hbitmap_set_two_elem()
318 hbitmap_test_set(data, L1 - 1, L1 + 2); in test_hbitmap_set()
319 hbitmap_test_set(data, L1 * 3 - 1, L1 + 2); in test_hbitmap_set()
320 hbitmap_test_set(data, L1 * 5, L1 * 2 + 1); in test_hbitmap_set()
321 hbitmap_test_set(data, L1 * 8 - 1, L1 * 2 + 1); in test_hbitmap_set()
322 hbitmap_test_set(data, L2 - 1, L1 + 2); in test_hbitmap_set()
323 hbitmap_test_set(data, L2 + L1 * 2 - 1, L1 + 2); in test_hbitmap_set()
324 hbitmap_test_set(data, L2 + L1 * 4, L1 * 2 + 1); in test_hbitmap_set()
325 hbitmap_test_set(data, L2 + L1 * 7 - 1, L1 * 2 + 1); in test_hbitmap_set()
332 hbitmap_test_init(data, L1 * 3, 0); in test_hbitmap_set_twice()
333 hbitmap_test_set(data, 0, L1 * 3); in test_hbitmap_set_twice()
334 hbitmap_test_set(data, L1, 1); in test_hbitmap_set_twice()
341 hbitmap_test_set(data, L1 - 1, L1 + 2); in test_hbitmap_set_overlap()
342 hbitmap_test_set(data, L1 * 2 - 1, L1 * 2 + 2); in test_hbitmap_set_overlap()
343 hbitmap_test_set(data, 0, L1 * 3); in test_hbitmap_set_overlap()
344 hbitmap_test_set(data, L1 * 8 - 1, L2); in test_hbitmap_set_overlap()
345 hbitmap_test_set(data, L2, L1); in test_hbitmap_set_overlap()
346 hbitmap_test_set(data, L2 - L1 - 1, L1 * 8 + 2); in test_hbitmap_set_overlap()
348 hbitmap_test_set(data, L3 - L1, L1 * 3); in test_hbitmap_set_overlap()
364 hbitmap_test_set(data, L1 - 1, L1 + 2); in test_hbitmap_reset()
365 hbitmap_test_reset(data, L1 * 2 - 1, L1 * 2 + 2); in test_hbitmap_reset()
366 hbitmap_test_set(data, 0, L1 * 3); in test_hbitmap_reset()
367 hbitmap_test_reset(data, L1 * 8 - 1, L2); in test_hbitmap_reset()
368 hbitmap_test_set(data, L2, L1); in test_hbitmap_reset()
369 hbitmap_test_reset(data, L2 - L1 - 1, L1 * 8 + 2); in test_hbitmap_reset()
371 hbitmap_test_reset(data, L3 - L1, L1 * 3); in test_hbitmap_reset()
375 hbitmap_test_reset(data, 0, L1); in test_hbitmap_reset()
385 hbitmap_test_set(data, L1 - 1, L1 + 2); in test_hbitmap_reset_all()
387 hbitmap_test_set(data, 0, L1 * 3); in test_hbitmap_reset_all()
389 hbitmap_test_set(data, L2, L1); in test_hbitmap_reset_all()
405 hbitmap_test_init(data, L1, 1); in test_hbitmap_granularity()
428 hbitmap_test_set(data, ((L2 + L1 + 1) << 7) + 8, 8); in test_hbitmap_iter_granularity()
430 g_assert_cmpint(hbitmap_iter_next(&hbi), ==, (L2 + L1 + 1) << 7); in test_hbitmap_iter_granularity()
433 hbitmap_iter_init(&hbi, data->hb, (L2 + L1 + 2) << 7); in test_hbitmap_iter_granularity()
438 g_assert_cmpint(hbitmap_iter_next(&hbi), ==, (L2 + L1 + 1) << 7); in test_hbitmap_iter_granularity()
442 hbitmap_iter_init(&hbi, data->hb, (L2 + L1 + 2) << 7); in test_hbitmap_iter_granularity()
706 uint64_t positions[] = { 0, 1, L1 - 1, L1, L2 - 1, L2, L2 + 1, L3 - 1 }; in test_hbitmap_serialize_basic()
731 uint64_t positions[] = { 0, 1, L1 - 1, L1, L2 - 1, L2, L2 + 1, L3 - 1 }; in test_hbitmap_serialize_part()
772 uint64_t min_l1 = MAX(L1, 64); in test_hbitmap_serialize_zeroes()
779 hbitmap_set(data->hb, positions[i], L1); in test_hbitmap_serialize_zeroes()
808 hbitmap_test_init(data, L1 * 2, 0); in test_hbitmap_iter_and_reset()
870 hbitmap_set(data->hb, L2 + 5, L1); in test_hbitmap_next_x_do()
872 test_hbitmap_next_x_check(data, L2 - L1); in test_hbitmap_next_x_do()
876 test_hbitmap_next_x_check(data, L2 + L1 - 1); in test_hbitmap_next_x_do()
877 test_hbitmap_next_x_check(data, L2 + L1); in test_hbitmap_next_x_do()
878 test_hbitmap_next_x_check(data, L2 + L1 + 1); in test_hbitmap_next_x_do()
879 test_hbitmap_next_x_check_range(data, L2 - 2, L1); in test_hbitmap_next_x_do()
883 test_hbitmap_next_x_check_range(data, L2 + 4, L1); in test_hbitmap_next_x_do()
884 test_hbitmap_next_x_check_range(data, L2 + 5, L1); in test_hbitmap_next_x_do()
885 test_hbitmap_next_x_check_range(data, L2 + 5 + L1 - 1, 1); in test_hbitmap_next_x_do()
886 test_hbitmap_next_x_check_range(data, L2 + 5 + L1, 1); in test_hbitmap_next_x_do()
887 test_hbitmap_next_x_check_range(data, L2 + 5 + L1 + 1, 1); in test_hbitmap_next_x_do()
890 test_hbitmap_next_x_check(data, L2 * 2 - L1); in test_hbitmap_next_x_do()
895 test_hbitmap_next_x_check(data, L2 * 2 + L1); in test_hbitmap_next_x_do()
897 test_hbitmap_next_x_check_range(data, L2 * 2 - L1, L1 + 1); in test_hbitmap_next_x_do()
917 hbitmap_test_init(data, L1, 0); in test_hbitmap_next_x_after_truncate()
918 hbitmap_test_truncate_impl(data, L1 * 2); in test_hbitmap_next_x_after_truncate()
919 hbitmap_set(data->hb, 0, L1); in test_hbitmap_next_x_after_truncate()
988 hbitmap_set(data->hb, L2 + 5, L1); in test_hbitmap_next_dirty_area_do()
993 test_hbitmap_next_dirty_area_check(data, L2 + 4, L1); in test_hbitmap_next_dirty_area_do()
994 test_hbitmap_next_dirty_area_check(data, L2 + 5, L1); in test_hbitmap_next_dirty_area_do()
995 test_hbitmap_next_dirty_area_check(data, L2 + 7, L1); in test_hbitmap_next_dirty_area_do()
996 test_hbitmap_next_dirty_area_check(data, L2 + L1, L1); in test_hbitmap_next_dirty_area_do()
1006 test_hbitmap_next_dirty_area_check(data, L2 + 5 + L1 - 1, INT64_MAX); in test_hbitmap_next_dirty_area_do()
1007 test_hbitmap_next_dirty_area_check(data, L2 + 5 + L1, 5); in test_hbitmap_next_dirty_area_do()
1008 test_hbitmap_next_dirty_area_check(data, L2 * 2 - L1, L1 + 1); in test_hbitmap_next_dirty_area_do()
1039 hbitmap_test_init(data, L1, 0); in test_hbitmap_next_dirty_area_after_truncate()
1040 hbitmap_test_truncate_impl(data, L1 * 2); in test_hbitmap_next_dirty_area_after_truncate()
1041 hbitmap_set(data->hb, L1 + 1, 1); in test_hbitmap_next_dirty_area_after_truncate()