Lines Matching refs:i

46 	for (int i = bitmap_first(map, nbits); i >= 0; i = bitmap_next(map, i)) {  in dump_bitmap_next()  local
47 printf(" %d", i); in dump_bitmap_next()
55 for (int i = bitmap_lsb_first(map, nbits); i >= 0; i = bitmap_lsb_next(map, nbits, i)) { in dump_bitmap_lsb() local
56 printf(" %d", i); in dump_bitmap_lsb()
75 for (uint i = 0; i < nbits; i++) { in test_bitmap() local
76 bitmap_set(map, i); in test_bitmap()
81 for (int i = bitmap_first(map, nbits); i >= 0; i = bitmap_next(map, i)) { in test_bitmap() local
82 assert(i == expected_result); in test_bitmap()
96 for (int i = bitmap_first(map, nbits); i >= 0; i = bitmap_next(map, i)) { in test_bitmap() local
97 assert(i == expected_result); in test_bitmap()
103 for (int i = bitmap_lsb_first(map, nbits); i >= 0; i = bitmap_lsb_next(map, nbits, i)) { in test_bitmap() local
104 assert(i == expected_result); in test_bitmap()
109 for (uint i = 0; i < nbits; i++) { in test_bitmap() local
110 bitmap_clear(map, i); in test_bitmap()
112 bitmap_set(map, i); in test_bitmap()
116 for (uint i = 0; i < nbits; i++) { in test_bitmap() local
117 bitmap_clear(map, i); in test_bitmap()
159 for (uint i = 0; i < nbits; i++) { in test_bitmap() local
160 bitmap_clear(map, i); in test_bitmap()
162 bitmap_set(map, i); in test_bitmap()
167 for (uint i = 0; i < nbits; i++) { in test_bitmap() local
168 bitmap_clear(map, i); in test_bitmap()
169 expected_result = i; in test_bitmap()
172 bitmap_set(map, i); in test_bitmap()
188 for (int i = 0; i < 64; i++) { in test_bits() local
189 bool changed = bit_set_if_clear(map, i); in test_bits()
193 for (int i = 0; i < 64; i++) { in test_bits() local
194 bool changed = bit_set_if_clear(map, i); in test_bits()
198 for (int i = 0; i < 64; i++) { in test_bits() local
199 bool changed = bit_clear_if_set(map, i); in test_bits()
203 for (int i = 0; i < 64; i++) { in test_bits() local
204 bool changed = bit_clear_if_set(map, i); in test_bits()