/third_party/optimized-routines/string/test/ |
D | __mtag_tag_region.c | 54 test (const struct fun *fun, int salign, int len) in test() argument 57 unsigned char *s = src + salign; in test() 63 if (len > LEN || salign >= A) in test() 71 s = src + salign; in test() 79 for (i = 0; i < salign; i++) in test() 83 ERR ("%s(align %d, %d) failed\n", fun->name, salign, len); in test() 89 for (; i < salign + len; i++) in test() 91 if (s[i - salign] != 'a') in test() 93 ERR ("%s(align %d, %d) failed\n", fun->name, salign, len); in test() 103 ERR ("%s(align %d, %d) failed\n", fun->name, salign, len); in test()
|
D | __mtag_tag_zero_region.c | 54 test (const struct fun *fun, int salign, int len) in test() argument 57 unsigned char *s = src + salign; in test() 63 if (len > LEN || salign >= A) in test() 71 s = src + salign; in test() 79 for (i = 0; i < salign; i++) in test() 83 ERR ("%s(align %d, %d) failed\n", fun->name, salign, len); in test() 89 for (; i < salign + len; i++) in test() 91 if (s[i - salign] != 0) in test() 93 ERR ("%s(align %d, %d) failed\n", fun->name, salign, len); in test() 103 ERR ("%s(align %d, %d) failed\n", fun->name, salign, len); in test()
|
D | memset.c | 47 test (const struct fun *fun, int salign, int c, int len) in test() argument 50 unsigned char *s = src + salign; in test() 56 if (len > LEN || salign >= A) in test() 70 for (i = 0; i < salign; i++) in test() 74 ERR ("%s(align %d, %d, %d) failed\n", fun->name, salign, c, len); in test() 79 for (; i < salign + len; i++) in test() 83 ERR ("%s(align %d, %d, %d) failed\n", fun->name, salign, c, len); in test() 92 ERR ("%s(align %d, %d, %d) failed\n", fun->name, salign, c, len); in test()
|
D | memmove.c | 50 test (const struct fun *fun, int dalign, int salign, int len) in test() argument 55 unsigned char *s = src + salign; in test() 63 if (len > LEN || dalign >= A || salign >= A) in test() 80 ERR ("%s(align %d, align %d, %d) failed\n", fun->name, dalign, salign, in test() 90 test_overlap (const struct fun *fun, int dalign, int salign, int len) in test_overlap() argument 95 unsigned char *s = src + salign; in test_overlap() 102 if (len > LEN || dalign >= A || salign >= A) in test_overlap() 109 s[i] = want[salign + i] = 'a' + i % 23; in test_overlap() 125 ERR ("%s(align %d, align %d, %d) failed\n", fun->name, dalign, salign, in test_overlap()
|
D | stpcpy.c | 55 test (const struct fun *fun, int dalign, int salign, int len) in test() argument 60 char *s = src + salign; in test() 68 if (len > LEN || dalign >= ALIGN || salign >= ALIGN) in test() 78 s[len + i] = (len + salign) & 1 ? 1 : 0; in test() 97 fun->name, dalign, salign, len); in test()
|
D | strcpy.c | 53 test (const struct fun *fun, int dalign, int salign, int len) in test() argument 58 char *s = src + salign; in test() 66 if (len > LEN || dalign >= ALIGN || salign >= ALIGN) in test() 76 s[len + i] = (len + salign) & 1 ? 1 : 0; in test() 95 fun->name, dalign, salign, len); in test()
|
D | memcpy.c | 52 test (const struct fun *fun, int dalign, int salign, int len) in test() argument 57 unsigned char *s = src + salign; in test() 65 if (len > LEN || dalign >= A || salign >= A) in test() 87 ERR ("%s(align %d, align %d, %d) failed\n", fun->name, dalign, salign, in test()
|
/third_party/musl/libc-test/src/functional/ |
D | string_memcpy.c | 15 static void test_align(int dalign, int salign, int len) in test_align() argument 23 if (salign + len > N || dalign + len > N) in test_align() 30 src[salign+i] = want[dalign+i] = '0'+i; in test_align() 31 p = pmemcpy(dst+dalign, src+salign, len); in test_align() 36 t_error("memcpy(align %d, align %d, %d) failed\n", dalign, salign, len); in test_align()
|