Lines Matching refs:s2

43 SIMPLE_MEMCMP (const wchar_t *s1, const wchar_t *s2, size_t n)  in SIMPLE_MEMCMP()  argument
50 while (n-- && (ret = *s1 < *s2 ? -1 : *s1 == *s2 ? 0 : 1) == 0) {s1++; s2++;} in SIMPLE_MEMCMP()
71 SIMPLE_MEMCMP (const char *s1, const char *s2, size_t n) in SIMPLE_MEMCMP() argument
75 while (n-- && (ret = *(unsigned char *) s1++ - *(unsigned char *) s2++) == 0); in SIMPLE_MEMCMP()
91 check_result (impl_t *impl, const CHAR *s1, const CHAR *s2, size_t len, in check_result() argument
94 int result = CALL (impl, s1, s2, len); in check_result()
107 do_one_test (impl_t *impl, const CHAR *s1, const CHAR *s2, size_t len, in do_one_test() argument
110 if (check_result (impl, s1, s2, len, exp_result) < 0) in do_one_test()
118 CHAR *s1, *s2; in do_test() local
132 s2 = (CHAR *) (buf2 + align2); in do_test()
135 s1[i] = s2[i] = 1 + (23 << ((CHARBYTES - 1) * 8)) * i % CHAR__MAX; in do_test()
138 s2[len] = align2; in do_test()
139 s2[len - 1] -= exp_result; in do_test()
142 do_one_test (impl, s1, s2, len, exp_result); in do_test()
213 CHAR s1[116], s2[116]; in check1() local
217 s2[0] = -108; in check1()
219 s2[1] = 99; in check1()
221 s2[2] = -113; in check1()
223 s2[3] = 1; in check1()
225 s2[4] = 116; in check1()
227 s2[5] = 99; in check1()
229 s2[6] = -113; in check1()
231 s2[7] = 1; in check1()
233 s2[8] = 84; in check1()
235 s2[9] = 99; in check1()
237 s2[10] = -113; in check1()
239 s2[11] = 1; in check1()
241 s2[12] = 52; in check1()
243 s2[13] = 99; in check1()
245 s2[14] = -113; in check1()
247 s2[15] = 1; in check1()
249 s2[16] = -76; in check1()
251 s2[17] = -14; in check1()
253 s2[18] = -109; in check1()
255 s2[19] = 1; in check1()
257 s2[20] = -108; in check1()
259 s2[21] = -14; in check1()
261 s2[22] = -109; in check1()
263 s2[23] = 1; in check1()
265 s2[24] = 84; in check1()
267 s2[25] = -15; in check1()
269 s2[26] = -109; in check1()
271 s2[27] = 1; in check1()
273 s2[28] = 52; in check1()
275 s2[29] = -15; in check1()
277 s2[30] = -109; in check1()
279 s2[31] = 1; in check1()
281 s2[32] = 20; in check1()
283 s2[33] = -15; in check1()
285 s2[34] = -109; in check1()
287 s2[35] = 1; in check1()
289 s2[36] = 20; in check1()
291 s2[37] = -14; in check1()
293 s2[38] = -109; in check1()
295 s2[39] = 1; in check1()
297 s2[40] = 52; in check1()
299 s2[41] = -14; in check1()
301 s2[42] = -109; in check1()
303 s2[43] = 1; in check1()
305 s2[44] = 84; in check1()
307 s2[45] = -14; in check1()
309 s2[46] = -109; in check1()
311 s2[47] = 1; in check1()
313 s2[48] = 116; in check1()
315 s2[49] = -14; in check1()
317 s2[50] = -109; in check1()
319 s2[51] = 1; in check1()
321 s2[52] = 116; in check1()
323 s2[53] = -15; in check1()
325 s2[54] = -109; in check1()
327 s2[55] = 1; in check1()
329 s2[56] = -44; in check1()
331 s2[57] = -14; in check1()
333 s2[58] = -109; in check1()
335 s2[59] = 1; in check1()
337 s2[60] = -108; in check1()
339 s2[61] = -15; in check1()
341 s2[62] = -109; in check1()
343 s2[63] = 1; in check1()
345 s2[64] = -76; in check1()
347 s2[65] = -15; in check1()
349 s2[66] = -109; in check1()
351 s2[67] = 1; in check1()
353 s2[68] = -44; in check1()
355 s2[69] = -15; in check1()
357 s2[70] = -109; in check1()
359 s2[71] = 1; in check1()
361 s2[72] = -12; in check1()
363 s2[73] = -15; in check1()
365 s2[74] = -109; in check1()
367 s2[75] = 1; in check1()
369 s2[76] = -12; in check1()
371 s2[77] = -14; in check1()
373 s2[78] = -109; in check1()
375 s2[79] = 1; in check1()
377 s2[80] = -68; in check1()
379 s2[81] = 64; in check1()
381 s2[82] = -106; in check1()
383 s2[83] = 1; in check1()
385 s2[84] = -12; in check1()
387 s2[85] = -13; in check1()
389 s2[86] = -109; in check1()
391 s2[87] = 1; in check1()
393 s2[88] = -44; in check1()
395 s2[89] = -13; in check1()
397 s2[90] = -109; in check1()
399 s2[91] = 1; in check1()
401 s2[92] = -76; in check1()
403 s2[93] = -13; in check1()
405 s2[94] = -109; in check1()
407 s2[95] = 1; in check1()
409 s2[96] = -108; in check1()
411 s2[97] = -13; in check1()
413 s2[98] = -109; in check1()
415 s2[99] = 1; in check1()
417 s2[100] = 116; in check1()
419 s2[101] = CHAR__MAX; in check1()
421 s2[102] = -109; in check1()
423 s2[103] = 1; in check1()
425 s2[104] = 84; in check1()
427 s2[105] = -13; in check1()
429 s2[106] = -109; in check1()
431 s2[107] = 1; in check1()
433 s2[108] = 52; in check1()
435 s2[109] = -13; in check1()
437 s2[110] = -109; in check1()
439 s2[111] = 1; in check1()
441 s2[112] = CHAR__MIN; in check1()
443 s2[113] = -13; in check1()
445 s2[114] = -109; in check1()
447 s2[115] = 1; in check1()
453 exp_result = SIMPLE_MEMCMP (s1 + i, s2 + i, len); in check1()
455 check_result (impl, s1 + i, s2 + i, len, exp_result); in check1()
473 CHAR *s2 = (CHAR *) buf2 + max_length - length; in check2() local
475 const int exp_result = SIMPLE_MEMCMP (s1, s2, length); in check2()
478 check_result (impl, s1, s2, length, exp_result); in check2()