Home
last modified time | relevance | path

Searched refs:salign (Results 1 – 8 of 8) sorted by relevance

/third_party/optimized-routines/string/test/
D__mtag_tag_region.c54 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.c54 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()
Dmemset.c47 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()
Dmemmove.c50 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()
Dstpcpy.c55 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()
Dstrcpy.c53 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()
Dmemcpy.c52 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/
Dstring_memcpy.c15 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()