Lines Matching refs:s1
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
131 s1 = (CHAR *) (buf1 + align1); in do_test()
135 s1[i] = s2[i] = 1 + (23 << ((CHARBYTES - 1) * 8)) * i % CHAR__MAX; in do_test()
137 s1[len] = align1; 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
216 s1[0] = -108; in check1()
218 s1[1] = 99; in check1()
220 s1[2] = -113; in check1()
222 s1[3] = 1; in check1()
224 s1[4] = 116; in check1()
226 s1[5] = 99; in check1()
228 s1[6] = -113; in check1()
230 s1[7] = 1; in check1()
232 s1[8] = 84; in check1()
234 s1[9] = 99; in check1()
236 s1[10] = -113; in check1()
238 s1[11] = 1; in check1()
240 s1[12] = 52; in check1()
242 s1[13] = 99; in check1()
244 s1[14] = -113; in check1()
246 s1[15] = 1; in check1()
248 s1[16] = -76; in check1()
250 s1[17] = -14; in check1()
252 s1[18] = -109; in check1()
254 s1[19] = 1; in check1()
256 s1[20] = -108; in check1()
258 s1[21] = -14; in check1()
260 s1[22] = -109; in check1()
262 s1[23] = 1; in check1()
264 s1[24] = 84; in check1()
266 s1[25] = -15; in check1()
268 s1[26] = -109; in check1()
270 s1[27] = 1; in check1()
272 s1[28] = 52; in check1()
274 s1[29] = -15; in check1()
276 s1[30] = -109; in check1()
278 s1[31] = 1; in check1()
280 s1[32] = 20; in check1()
282 s1[33] = -15; in check1()
284 s1[34] = -109; in check1()
286 s1[35] = 1; in check1()
288 s1[36] = 20; in check1()
290 s1[37] = -14; in check1()
292 s1[38] = -109; in check1()
294 s1[39] = 1; in check1()
296 s1[40] = 52; in check1()
298 s1[41] = -14; in check1()
300 s1[42] = -109; in check1()
302 s1[43] = 1; in check1()
304 s1[44] = 84; in check1()
306 s1[45] = -14; in check1()
308 s1[46] = -109; in check1()
310 s1[47] = 1; in check1()
312 s1[48] = 116; in check1()
314 s1[49] = -14; in check1()
316 s1[50] = -109; in check1()
318 s1[51] = 1; in check1()
320 s1[52] = 116; in check1()
322 s1[53] = -15; in check1()
324 s1[54] = -109; in check1()
326 s1[55] = 1; in check1()
328 s1[56] = -44; in check1()
330 s1[57] = -14; in check1()
332 s1[58] = -109; in check1()
334 s1[59] = 1; in check1()
336 s1[60] = -108; in check1()
338 s1[61] = -15; in check1()
340 s1[62] = -109; in check1()
342 s1[63] = 1; in check1()
344 s1[64] = -76; in check1()
346 s1[65] = -15; in check1()
348 s1[66] = -109; in check1()
350 s1[67] = 1; in check1()
352 s1[68] = -44; in check1()
354 s1[69] = -15; in check1()
356 s1[70] = -109; in check1()
358 s1[71] = 1; in check1()
360 s1[72] = -12; in check1()
362 s1[73] = -15; in check1()
364 s1[74] = -109; in check1()
366 s1[75] = 1; in check1()
368 s1[76] = -12; in check1()
370 s1[77] = -14; in check1()
372 s1[78] = -109; in check1()
374 s1[79] = 1; in check1()
376 s1[80] = 20; in check1()
378 s1[81] = -12; in check1()
380 s1[82] = -109; in check1()
382 s1[83] = 1; in check1()
384 s1[84] = -12; in check1()
386 s1[85] = -13; in check1()
388 s1[86] = -109; in check1()
390 s1[87] = 1; in check1()
392 s1[88] = -44; in check1()
394 s1[89] = -13; in check1()
396 s1[90] = -109; in check1()
398 s1[91] = 1; in check1()
400 s1[92] = -76; in check1()
402 s1[93] = -13; in check1()
404 s1[94] = -109; in check1()
406 s1[95] = 1; in check1()
408 s1[96] = -108; in check1()
410 s1[97] = -13; in check1()
412 s1[98] = -109; in check1()
414 s1[99] = 1; in check1()
416 s1[100] = 116; in check1()
418 s1[101] = CHAR__MIN; in check1()
420 s1[102] = -109; in check1()
422 s1[103] = 1; in check1()
424 s1[104] = 84; in check1()
426 s1[105] = -13; in check1()
428 s1[106] = -109; in check1()
430 s1[107] = 1; in check1()
432 s1[108] = 52; in check1()
434 s1[109] = -13; in check1()
436 s1[110] = -109; in check1()
438 s1[111] = 1; in check1()
440 s1[112] = CHAR__MAX; in check1()
442 s1[113] = -13; in check1()
444 s1[114] = -109; in check1()
446 s1[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()
472 CHAR *s1 = (CHAR *) buf1 + 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()