Home
last modified time | relevance | path

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

/external/llvm-project/libc/AOR_v20.02/string/test/
Dmemset.c43 static void err(const char *name, unsigned char *src, int salign, int c, int len) in err() argument
45 ERR("%s(align %d, %d, %d) failed\n", name, salign, c, len); in err()
46 ERR("got : %.*s\n", salign+len+1, src); in err()
49 static void test(const struct fun *fun, int salign, int c, int len) in test() argument
52 unsigned char *s = src + salign; in test()
56 if (len > LEN || salign >= A) in test()
69 for (i = 0; i < salign; i++) { in test()
71 err(fun->name, src, salign, c, len); in test()
75 for (i = salign; i < len; i++) { in test()
77 err(fun->name, src, salign, c, len); in test()
[all …]
Dmemmove.c46 static void test(const struct fun *fun, int dalign, int salign, int len) in test() argument
51 unsigned char *s = src + salign; in test()
57 if (len > LEN || dalign >= A || salign >= A) in test()
71 ERR("%s(align %d, align %d, %d) failed\n", fun->name, dalign, salign, len); in test()
79 static void test_overlap(const struct fun *fun, int dalign, int salign, int len) in test_overlap() argument
84 unsigned char *s = src + salign; in test_overlap()
89 if (len > LEN || dalign >= A || salign >= A) in test_overlap()
101 want[salign+i] = src[salign+i]; in test_overlap()
112 ERR("%s(align %d, align %d, %d) failed\n", fun->name, dalign, salign, len); in test_overlap()
Dstrcpy.c48 static void test(const struct fun *fun, int dalign, int salign, int len) in test() argument
53 char *s = src + salign; in test()
59 if (len > LEN || dalign >= A || salign >= A) in test()
74 ERR("%s(align %d, align %d, %d) failed\n", fun->name, dalign, salign, len); in test()
Dmemcpy.c48 static void test(const struct fun *fun, int dalign, int salign, int len) in test() argument
53 unsigned char *s = src + salign; in test()
59 if (len > LEN || dalign >= A || salign >= A) in test()
73 ERR("%s(align %d, align %d, %d) failed\n", fun->name, dalign, salign, len); in test()
Dstpcpy.c47 static void test(const struct fun *fun, int dalign, int salign, int len) in test() argument
52 char *s = src + salign; in test()
58 if (len > LEN || dalign >= A || salign >= A) in test()
73 ERR("%s(align %d, align %d, %d) failed\n", fun->name, dalign, salign, len); in test()
/external/arm-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()