Lines Matching +full:multi +full:- +full:word
115 expect_eq_pbl("0-22", bmap, 23); in test_zero_clear()
116 expect_eq_pbl("0-1023", bmap, 1024); in test_zero_clear()
118 /* single-word bitmaps */ in test_zero_clear()
120 expect_eq_pbl("9-1023", bmap, 1024); in test_zero_clear()
123 expect_eq_pbl("64-1023", bmap, 1024); in test_zero_clear()
127 expect_eq_pbl("64-78,98-1023", bmap, 1024); in test_zero_clear()
130 expect_eq_pbl("128-1023", bmap, 1024); in test_zero_clear()
147 /* single-word bitmaps */ in test_fill_set()
149 expect_eq_pbl("0-8", bmap, 1024); in test_fill_set()
152 expect_eq_pbl("0-63", bmap, 1024); in test_fill_set()
156 expect_eq_pbl("0-63,79-97", bmap, 1024); in test_fill_set()
159 expect_eq_pbl("0-127", bmap, 1024); in test_fill_set()
163 expect_eq_pbl("0-1023", bmap, 1024); in test_fill_set()
174 /* single-word bitmaps */ in test_copy()
177 expect_eq_pbl("0-18", bmap2, 1024); in test_copy()
181 expect_eq_pbl("0-18", bmap2, 1024); in test_copy()
183 /* multi-word bitmaps */ in test_copy()
186 expect_eq_pbl("0-108", bmap2, 1024); in test_copy()
190 expect_eq_pbl("0-108", bmap2, 1024); in test_copy()
192 /* the following tests assume a 32- or 64-bit arch (even 128b in test_copy()
197 bitmap_copy(bmap2, bmap1, 109); /* ... but 0-padded til word length */ in test_copy()
198 expect_eq_pbl("0-108,128-1023", bmap2, 1024); in test_copy()
201 bitmap_copy(bmap2, bmap1, 97); /* ... but aligned on word length */ in test_copy()
202 expect_eq_pbl("0-108,128-1023", bmap2, 1024); in test_copy()
240 {0, "0-15", &exp[2 * step], 32, 0},
241 {0, "16-31", &exp[3 * step], 32, 0},
242 {0, "0-31:1/2", &exp[4 * step], 32, 0},
243 {0, "1-31:1/2", &exp[5 * step], 32, 0},
244 {0, "0-31:1/4", &exp[6 * step], 32, 0},
245 {0, "1-31:1/4", &exp[7 * step], 32, 0},
246 {0, "0-31:4/4", &exp[8 * step], 32, 0},
247 {0, "1-31:4/4", &exp[9 * step], 32, 0},
248 {0, "0-31:1/4,32-63:2/4", &exp[10 * step], 64, 0},
249 {0, "0-31:3/4,32-63:4/4", &exp[11 * step], 64, 0},
251 {0, "0-31:1/4,32-63:2/4,64-95:3/4,96-127:4/4", exp2, 128, 0},
253 {0, "0-2047:128/256", NULL, 2048, PARSE_TIME},
255 {-EINVAL, "-1", NULL, 8, 0},
256 {-EINVAL, "-0", NULL, 8, 0},
257 {-EINVAL, "10-1", NULL, 8, 0},
258 {-EINVAL, "0-31:", NULL, 8, 0},
259 {-EINVAL, "0-31:0", NULL, 8, 0},
260 {-EINVAL, "0-31:0/0", NULL, 8, 0},
261 {-EINVAL, "0-31:1/0", NULL, 8, 0},
262 {-EINVAL, "0-31:10/1", NULL, 8, 0},
277 cycles = get_cycles() - cycles; in test_bitmap_parselist()
321 if (nbits < EXP_BYTES - 32) in test_bitmap_arr32()
334 for (nbits = 0; nbits < 1024 - start; nbits += 8) { in test_mem_optimisations()
379 return failed_tests ? -EINVAL : 0; in test_bitmap_init()