Lines Matching +full:non +full:- +full:overlapping

1 // SPDX-License-Identifier: GPL-2.0
97 /* Verify argument side-effects aren't repeated. */ in memcpy_test()
104 compare("argument side-effects", dest, three); in memcpy_test()
171 /* Verify argument side-effects aren't repeated. */ in memmove_test()
178 compare("argument side-effects", dest, five); in memmove_test()
180 /* Verify overlapping overwrite is correct. */ in memmove_test()
183 compare("overlapping write", overlap, overlap_expected); in memmove_test()
185 /* Verify larger overlapping moves. */ in memmove_test()
188 * Test a backwards overlapping memmove first. 256 and 1024 are in memmove_test()
195 memchr(larger_array + 1, 0xaa, ARRAY_SIZE(larger_array) - 1)); in memmove_test()
196 /* Test a forwards overlapping memmove. */ in memmove_test()
201 KUNIT_ASSERT_NULL(test, memchr(larger_array + 1, 0xBBu, 256 - 1)); in memmove_test()
203 memchr(larger_array + 257, 0xBBu, ARRAY_SIZE(larger_array) - 257)); in memmove_test()
273 /* Verify argument side-effects aren't repeated. */ in memset_test()
281 compare("argument side-effects", dest, three); in memset_test()
315 /* Make sure we have non-zero edges. */ in init_large()
317 set_random_nonzero(test, &large_src[ARRAY_SIZE(large_src) - 1]); in init_large()
331 /* Copy a growing number of non-overlapping bytes ... */ in copy_large_test()
336 int right_zero_size = ARRAY_SIZE(large_dst) - right_zero_pos; in copy_large_test()
353 /* Are we byte-for-byte exact across the copy? */ in copy_large_test()
379 * take single index steps for at least the first "inc"-many indexes
380 * from the "start" and at least the last "inc"-many indexes before
381 * the "end". When in the middle, take full "inc"-wide steps. For
388 end -= inc; in next_step()
419 right_zero_size = ARRAY_SIZE(large_dst) - right_zero_pos; in inner_loop()
423 src_size = d_off - s_off; in inner_loop()
429 right_zero_size = ARRAY_SIZE(large_dst) - right_zero_pos; in inner_loop()
432 src_orig_pos = src_pos - s_off; in inner_loop()
433 src_size = right_zero_pos - src_pos; in inner_loop()
436 /* Check non-overlapping source is unchanged.*/ in inner_loop()
455 memset(&large_dst[pos], 0, right_zero_pos - pos); in inner_loop()
476 /* Copy a growing number of overlapping bytes ... */ in memmove_overlap_test()
482 int s_start = max(d_off - bytes, 0); in memmove_overlap_test()