Home
last modified time | relevance | path

Searched refs:p1 (Results 1 – 18 of 18) sorted by relevance

/string/
A Dstrcasecmp.c51 const unsigned char *p1 = (const unsigned char *) s1; in __strcasecmp() local
55 if (p1 == p2) in __strcasecmp()
58 while ((result = TOLOWER (*p1) - TOLOWER (*p2++)) == 0) in __strcasecmp()
59 if (*p1++ == '\0') in __strcasecmp()
A Dstrncase.c54 const unsigned char *p1 = (const unsigned char *) s1; in __strncasecmp() local
58 if (p1 == p2 || n == 0) in __strncasecmp()
61 while ((result = TOLOWER (*p1) - TOLOWER (*p2++)) == 0) in __strncasecmp()
62 if (*p1++ == '\0' || --n == 0) in __strncasecmp()
A Dstrverscmp.c44 const unsigned char *p1 = (const unsigned char *) s1; in __strverscmp() local
68 if (p1 == p2) in __strverscmp()
71 unsigned char c1 = *p1++; in __strverscmp()
83 c1 = *p1++; in __strverscmp()
96 while (isdigit (*p1++)) in __strverscmp()
A Dtest-strcasecmp.c124 unsigned char *p1 = buf1 + page_size - 512; in do_random_tests() local
152 p1[i] = tolower (random () & 255); in do_random_tests()
153 if (i < len1 + align1 && !p1[i]) in do_random_tests()
155 p1[i] = tolower (random () & 255); in do_random_tests()
156 if (!p1[i]) in do_random_tests()
157 p1[i] = tolower (1 + (random () & 127)); in do_random_tests()
172 memcpy (p2 + align2, p1 + align1, pos); in do_random_tests()
175 if (tolower (p2[align2 + pos]) == p1[align1 + pos]) in do_random_tests()
179 p2[align2 + pos] = toupper (p1[align1 + pos] in do_random_tests()
183 if (p1[align1 + pos] < tolower (p2[align2 + pos])) in do_random_tests()
[all …]
A Dstrcmp.c30 STRCMP (const char *p1, const char *p2) in STRCMP() argument
32 const unsigned char *s1 = (const unsigned char *) p1; in STRCMP()
A Dtest-strncasecmp.c187 unsigned char *p1 = buf1 + page_size - 512; in do_random_tests() local
215 p1[i] = tolower (random () & 255); in do_random_tests()
216 if (i < len1 + align1 && !p1[i]) in do_random_tests()
218 p1[i] = tolower (random () & 255); in do_random_tests()
219 if (!p1[i]) in do_random_tests()
220 p1[i] = tolower (1 + (random () & 127)); in do_random_tests()
235 memcpy (p2 + align2, p1 + align1, pos); in do_random_tests()
238 if (tolower (p2[align2 + pos]) == p1[align1 + pos]) in do_random_tests()
242 p2[align2 + pos] = toupper (p1[align1 + pos] in do_random_tests()
246 if (p1[align1 + pos] < tolower (p2[align2 + pos])) in do_random_tests()
[all …]
A Dtest-strcmp.c240 p1[i] = random () & 255; in do_random_tests()
241 if (i < len1 + align1 && !p1[i]) in do_random_tests()
243 p1[i] = random () & 255; in do_random_tests()
244 if (!p1[i]) in do_random_tests()
245 p1[i] = 1 + (random () & 127); in do_random_tests()
260 MEMCPY (p2 + align2, p1 + align1, pos); in do_random_tests()
263 if (p2[align2 + pos] == p1[align1 + pos]) in do_random_tests()
266 if (p2[align2 + pos] == p1[align1 + pos]) in do_random_tests()
270 if (p1[align1 + pos] < p2[align2 + pos]) in do_random_tests()
275 p1[len1 + align1] = 0; in do_random_tests()
[all …]
A Dtst-svc.c11 compare (const void *p1, const void *p2) in compare() argument
13 return strverscmp (*((char **) p1), *((char **) p2)); in compare()
A Dtest-strcpy.c126 UCHAR *p1 = (UCHAR *) (buf1 + page_size) - 512; in do_random_tests() local
155 p1[i] = 0; in do_random_tests()
158 p1[i] = random () & BIG_CHAR; in do_random_tests()
159 if (i >= align1 && i < len + align1 && !p1[i]) in do_random_tests()
160 p1[i] = (random () & SMALL_CHAR) + 3; in do_random_tests()
167 res = (UCHAR *) CALL (impl, (CHAR *) (p2 + align2), (CHAR *) (p1 + align1)); in do_random_tests()
195 if (MEMCMP (p1 + align1, p2 + align2, len + 1)) in do_random_tests()
A Dstrcasestr.c46 #define CMP_FUNC(p1, p2, l) \ argument
47 __strncasecmp ((const char *) (p1), (const char *) (p2), l)
A Dtest-strncmp.c272 UCHAR *p1 = (UCHAR *) (buf1 + page_size - 512 * CHARBYTES); in do_random_tests() local
301 p1[i] = random () & 255; in do_random_tests()
302 if (i < len1 + align1 && !p1[i]) in do_random_tests()
304 p1[i] = random () & 255; in do_random_tests()
305 if (!p1[i]) in do_random_tests()
306 p1[i] = 1 + (random () & 127); in do_random_tests()
321 MEMCPY (p2 + align2, p1 + align1, pos); in do_random_tests()
324 if (p2[align2 + pos] == p1[align1 + pos]) in do_random_tests()
327 if (p2[align2 + pos] == p1[align1 + pos]) in do_random_tests()
333 if (p1[align1 + pos] < p2[align2 + pos]) in do_random_tests()
[all …]
A Dtest-memccpy.c114 unsigned char *p1 = buf1 + page_size - 512; in do_random_tests() local
171 p1[i] = c; in do_random_tests()
174 p1[i] = random () & 255; in do_random_tests()
175 if (i >= align1 && i < len + align1 && p1[i] == c) in do_random_tests()
176 p1[i] = (random () & 127) + 3 + c; in do_random_tests()
184 res = CALL (impl, p2 + align2, p1 + align1, (char) c, size); in do_random_tests()
222 if (memcmp (p1 + align1, p2 + align2, j)) in do_random_tests()
A Dtest-strcat.c128 UCHAR *p1 = (UCHAR *) (buf1 + page_size) - 512; in do_random_tests() local
165 p1[i] = 0; in do_random_tests()
168 p1[i] = random () & BIG_CHAR; in do_random_tests()
169 if (i >= align1 && i < len1 + align1 && !p1[i]) in do_random_tests()
170 p1[i] = (random () & SMALL_CHAR) + 3; in do_random_tests()
187 (CHAR *) (p1 + align1)); in do_random_tests()
221 if (MEMCMP (p1 + align1, p2 + align2 + len2, len1 + 1)) in do_random_tests()
A Dtest-memcpy.c27 unsigned char *p1, *p2; in do_random_tests() local
79 p1 = buf1 + page_size - size1; in do_random_tests()
86 p1[i] = random () & 255; in do_random_tests()
95 (char *)(p1 + align1), len); in do_random_tests()
127 if (memcmp (p1 + align1, p2 + align2, len)) in do_random_tests()
A Dtest-strncpy.c195 UCHAR *p1 = (UCHAR *) (buf1 + page_size) - 512; in do_random_tests() local
255 p1[i] = 0; in do_random_tests()
258 p1[i] = random () & BIG_CHAR; in do_random_tests()
259 if (i >= align1 && i < len + align1 && !p1[i]) in do_random_tests()
260 p1[i] = (random () & SMALL_CHAR) + 3; in do_random_tests()
268 (CHAR *) (p1 + align1), size); in do_random_tests()
310 if (MEMCMP (p1 + align1, p2 + align2, j)) in do_random_tests()
A Dtest-memcmp.c152 UCHAR *p1 = (UCHAR *) (buf1 + page_size - 512 * CHARBYTES); in do_random_tests() local
174 p1[i] = random () & 255; in do_random_tests()
180 MEMCPY ((CHAR *) p2 + align2, (const CHAR *) p1 + align1, len); in do_random_tests()
183 MEMCPY ((CHAR *) p2 + align2, (const CHAR *) p1 + align1, pos); in do_random_tests()
184 if (p2[align2 + pos] == p1[align1 + pos]) in do_random_tests()
187 if (p2[align2 + pos] == p1[align1 + pos]) in do_random_tests()
188 p2[align2 + pos] = p1[align1 + pos] + 3 + (random () & 127); in do_random_tests()
191 if (p1[align1 + pos] < p2[align2 + pos]) in do_random_tests()
199 r = CALL (impl, (CHAR *) p1 + align1, (const CHAR *) p2 + align2, in do_random_tests()
204 … n, impl->name, align1 * CHARBYTES & 63, align2 * CHARBYTES & 63, len, pos, r, result, p1, p2); in do_random_tests()
A Dtest-memmove.c127 unsigned char *p1, *p2; in do_random_tests() local
161 p1 = buf1 + page_size - size; in do_random_tests()
172 p1[i] = random () & 255; in do_random_tests()
184 memcpy (p2 + srcstart, p1 + srcstart, srcend - srcstart); in do_random_tests()
198 if (memcmp (p1 + align1, p2 + align2, len)) in do_random_tests()
226 && memcmp (p2 + srcstart, p1 + srcstart, in do_random_tests()
237 && memcmp (p2 + i, p1 + i, srcend - i)) in do_random_tests()
A Dtest-strncat.c200 UCHAR *p1 = (UCHAR *) (buf1 + page_size) - 512; in do_random_tests() local
239 p1[i] = 0; in do_random_tests()
242 p1[i] = random () & BIG_CHAR; in do_random_tests()
243 if (i >= align1 && i < len1 + align1 && !p1[i]) in do_random_tests()
244 p1[i] = (random () & SMALL_CHAR) + 3; in do_random_tests()
261 (CHAR *) (p1 + align1), N); in do_random_tests()
314 if (MEMCMP (p1 + align1, p2 + align2 + len2, in do_random_tests()

Completed in 30 milliseconds