/string/ |
A D | strverscmp.c | 45 const unsigned char *p2 = (const unsigned char *) s2; in __strverscmp() local 68 if (p1 == p2) in __strverscmp() 72 unsigned char c2 = *p2++; in __strverscmp() 84 c2 = *p2++; in __strverscmp() 97 if (!isdigit (*p2++)) in __strverscmp() 100 return isdigit (*p2) ? -1 : diff; in __strverscmp()
|
A D | test-strcasecmp.c | 125 unsigned char *p2 = buf2 + page_size - 512; in do_random_tests() local 162 p2[i] = toupper (random () & 255); in do_random_tests() 163 if (i < len2 + align2 && !p2[i]) in do_random_tests() 165 p2[i] = toupper (random () & 255); in do_random_tests() 166 if (!p2[i]) in do_random_tests() 167 toupper (p2[i] = 1 + (random () & 127)); in do_random_tests() 172 memcpy (p2 + align2, p1 + align1, pos); in do_random_tests() 177 p2[align2 + pos] = toupper (random () & 255); 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 D | strcasecmp.c | 52 const unsigned char *p2 = (const unsigned char *) s2; in __strcasecmp() local 55 if (p1 == p2) in __strcasecmp() 58 while ((result = TOLOWER (*p1) - TOLOWER (*p2++)) == 0) in __strcasecmp()
|
A D | strncase.c | 55 const unsigned char *p2 = (const unsigned char *) s2; in __strncasecmp() local 58 if (p1 == p2 || n == 0) in __strncasecmp() 61 while ((result = TOLOWER (*p1) - TOLOWER (*p2++)) == 0) in __strncasecmp()
|
A D | test-memcpy.c | 27 unsigned char *p1, *p2; in do_random_tests() local 80 p2 = buf2 + page_size - size2; in do_random_tests() 93 memset (p2, c, j); in do_random_tests() 94 res = (unsigned char *)CALL (impl, (char *)(p2 + align2), in do_random_tests() 96 if (res != MEMCPY_RESULT (p2 + align2, len)) in do_random_tests() 102 MEMCPY_RESULT (p2 + align2, len)); in do_random_tests() 107 if (p2[i] != c) in do_random_tests() 118 if (p2[i] != c) in do_random_tests() 127 if (memcmp (p1 + align1, p2 + align2, len)) in do_random_tests()
|
A D | strcmp.c | 30 STRCMP (const char *p1, const char *p2) in STRCMP() argument 33 const unsigned char *s2 = (const unsigned char *) p2; in STRCMP()
|
A D | test-strncasecmp.c | 188 unsigned char *p2 = buf2 + page_size - 512; in do_random_tests() local 225 p2[i] = toupper (random () & 255); in do_random_tests() 226 if (i < len2 + align2 && !p2[i]) in do_random_tests() 228 p2[i] = toupper (random () & 255); in do_random_tests() 229 if (!p2[i]) in do_random_tests() 230 toupper (p2[i] = 1 + (random () & 127)); in do_random_tests() 235 memcpy (p2 + align2, p1 + align1, pos); in do_random_tests() 240 p2[align2 + pos] = toupper (random () & 255); 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 D | test-strcat.c | 129 UCHAR *p2 = (UCHAR *) (buf2 + page_size) - 512; in do_random_tests() local 183 MEMSET (p2 - 64, '\1', align2 + 64); in do_random_tests() 184 MEMSET (p2 + align2 + len2 + 1, '\1', 512 - align2 - len2 - 1); in do_random_tests() 185 MEMCPY (p2 + align2, p3, len2 + 1); in do_random_tests() 186 res = (UCHAR *) CALL (impl, (CHAR *) (p2 + align2), in do_random_tests() 188 if (res != p2 + align2) in do_random_tests() 192 p2 + align2); in do_random_tests() 197 if (p2[j - 64] != '\1') in do_random_tests() 205 if (MEMCMP (p2 + align2, p3, len2)) in do_random_tests() 213 if (p2[j] != '\1') in do_random_tests() [all …]
|
A D | test-strcpy.c | 127 UCHAR *p2 = (UCHAR *) (buf2 + page_size) - 512; in do_random_tests() local 166 MEMSET (p2 - 64, '\1', 512 + 64); in do_random_tests() 167 res = (UCHAR *) CALL (impl, (CHAR *) (p2 + align2), (CHAR *) (p1 + align1)); in do_random_tests() 168 if (res != STRCPY_RESULT (p2 + align2, len)) in do_random_tests() 172 STRCPY_RESULT (p2 + align2, len)); in do_random_tests() 177 if (p2[j - 64] != '\1') in do_random_tests() 187 if (p2[j] != '\1') in do_random_tests() 195 if (MEMCMP (p1 + align1, p2 + align2, len + 1)) in do_random_tests()
|
A D | tst-svc.c | 11 compare (const void *p1, const void *p2) in compare() argument 13 return strverscmp (*((char **) p1), *((char **) p2)); in compare()
|
A D | test-memmove.c | 127 unsigned char *p1, *p2; in do_random_tests() local 162 p2 = buf2 + page_size - size; in do_random_tests() 183 memset (p2 + dststart, c, dstend - dststart); in do_random_tests() 186 CALL (impl, (char *) (p2 + align1), (char *) (p2 + align2), len); in do_random_tests() 189 (char *) (p2 + align2), in do_random_tests() 190 (char *) (p2 + align1), len); in do_random_tests() 191 if (res != p2 + align2) in do_random_tests() 198 if (memcmp (p1 + align1, p2 + align2, len)) in do_random_tests() 216 if (p2[i] != c) in do_random_tests() 226 && memcmp (p2 + srcstart, p1 + srcstart, in do_random_tests() [all …]
|
A D | test-strcmp.c | 250 p2[i] = random () & 255; in do_random_tests() 251 if (i < len2 + align2 && !p2[i]) in do_random_tests() 253 p2[i] = random () & 255; in do_random_tests() 254 if (!p2[i]) in do_random_tests() 255 p2[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() 265 p2[align2 + pos] = random () & 255; 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() [all …]
|
A D | test-strncmp.c | 311 p2[i] = random () & 255; in do_random_tests() 312 if (i < len2 + align2 && !p2[i]) in do_random_tests() 314 p2[i] = random () & 255; in do_random_tests() 315 if (!p2[i]) in do_random_tests() 316 p2[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() 326 p2[align2 + pos] = random () & 255; 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 D | test-strncat.c | 201 UCHAR *p2 = (UCHAR *) (buf2 + page_size) - 512; in do_random_tests() local 257 MEMSET (p2 - 64, '\1', align2 + 64); in do_random_tests() 259 MEMCPY (p2 + align2, p3, len2 + 1); in do_random_tests() 260 res = (UCHAR *) CALL (impl, (CHAR *) (p2 + align2), in do_random_tests() 262 if (res != p2 + align2) in do_random_tests() 267 res, p2 + align2); in do_random_tests() 272 if (p2[j - 64] != '\1') in do_random_tests() 281 if (MEMCMP (p2 + align2, p3, len2)) in do_random_tests() 295 if (p2[j] != '\1') in do_random_tests() 306 if (p2[align2 + N + len2] != '\0') in do_random_tests() [all …]
|
A D | test-strncpy.c | 196 UCHAR *p2 = (UCHAR *) (buf2 + page_size) - 512; in do_random_tests() local 266 MEMSET (p2 - 64, '\1', 512 + 64); in do_random_tests() 267 res = (UCHAR *) CALL (impl, (CHAR *) (p2 + align2), in do_random_tests() 269 if (res != STRNCPY_RESULT (p2 + align2, len, size)) in do_random_tests() 273 STRNCPY_RESULT (p2 + align2, len, size)); in do_random_tests() 278 if (p2[j - 64] != '\1') in do_random_tests() 291 if (p2[j] != '\1') in do_random_tests() 300 if (p2[j]) in do_random_tests() 310 if (MEMCMP (p1 + align1, p2 + align2, j)) in do_random_tests()
|
A D | strcasestr.c | 46 #define CMP_FUNC(p1, p2, l) \ argument 47 __strncasecmp ((const char *) (p1), (const char *) (p2), l)
|
A D | test-memccpy.c | 115 unsigned char *p2 = buf2 + page_size - 512; in do_random_tests() local 183 memset (p2 - 64, '\1', 512 + 64); in do_random_tests() 184 res = CALL (impl, p2 + align2, p1 + align1, (char) c, size); in do_random_tests() 188 expect = p2 + align2 + len + 1; in do_random_tests() 198 if (p2[j - 64] != '\1') in do_random_tests() 211 if (p2[j] != '\1') in do_random_tests() 222 if (memcmp (p1 + align1, p2 + align2, j)) in do_random_tests()
|
A D | test-memcmp.c | 153 UCHAR *p2 = (UCHAR *) (buf2 + page_size - 512 * CHARBYTES); in do_random_tests() local 176 p2[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() 186 p2[align2 + pos] = random () & 255; 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() [all …]
|
A D | test-memset.c | 155 UCHAR *p2 = (UCHAR *) buf2; in do_random_tests() local 158 p2[i] = random () & BIG_CHAR; in do_random_tests() 196 p[i + align] = p2[i]; in do_random_tests()
|