Lines Matching refs:bytes
334 /* Copy a growing number of non-overlapping bytes ... */
335 for (int bytes = 1; bytes <= ARRAY_SIZE(large_src); bytes++) {
338 int right_zero_pos = offset + bytes;
343 memmove(large_dst + offset, large_src, bytes);
345 memcpy(large_dst + offset, large_src, bytes);
350 "with size %d at offset %d", bytes, offset);
354 "with size %d at offset %d", bytes, offset);
358 memcmp(large_dst + offset, large_src, bytes), 0,
359 "with size %d at offset %d", bytes, offset);
362 memset(large_dst + offset, 0, bytes);
398 static void inner_loop(struct kunit *test, int bytes, int d_off, int s_off)
406 memcpy(&large_dst[s_off], large_src, bytes);
409 memmove(&large_dst[d_off], &large_dst[s_off], bytes);
412 KUNIT_ASSERT_EQ_MSG(test, memcmp(&large_dst[d_off], large_src, bytes), 0,
414 bytes, s_off, d_off);
421 right_zero_pos = d_off + bytes;
431 right_zero_pos = s_off + bytes;
434 src_pos = d_off + bytes;
443 bytes, s_off, d_off);
449 bytes, s_off, d_off);
454 bytes, s_off, d_off);
465 * very long time. Instead, only check up to 128 bytes offset
479 /* Copy a growing number of overlapping bytes ... */
480 for (int bytes = bytes_start; bytes < bytes_end;
481 bytes = next_step(bytes, bytes_start, bytes_end, bytes_step)) {
485 int s_start = max(d_off - bytes, 0);
486 int s_end = min_t(int, d_off + bytes, ARRAY_SIZE(large_src));
491 inner_loop(test, bytes, d_off, s_off);