Home
last modified time | relevance | path

Searched refs:p2 (Results 1 – 25 of 74) sorted by relevance

123

/glibc-2.36/sysdeps/pthread/
Dtst-basic6.c44 char *p2 = getcwd (NULL, 0); in tf() local
45 if (p2 == NULL) in tf()
51 if (strcmp (p, p2) != 0) in tf()
53 printf ("initial cwd mismatch: \"%s\" vs \"%s\"\n", p, p2); in tf()
58 free (p2); in tf()
109 char *p2 = getcwd (NULL, 0); in do_test() local
110 if (p2 == NULL) in do_test()
116 if (strcmp (p, p2) != 0) in do_test()
118 printf ("cwd after chdir mismatch: \"%s\" vs \"%s\"\n", p, p2); in do_test()
123 free (p2); in do_test()
/glibc-2.36/sysdeps/ieee754/ldbl-128ibm/
Dtest-fmodrem-ldbl-128ibm.c36 volatile union u p2 = { .d = { DBL_MIN, -0.0 } }; variable
65 result |= TEST_FUNC (p1.ld, p2.ld, 0.0L); in do_test()
68 result |= TEST_FUNC (p2.ld, p1.ld, 0.0L); in do_test()
69 result |= TEST_FUNC (p2.ld, p2.ld, 0.0L); in do_test()
70 result |= TEST_FUNC (p2.ld, m1.ld, 0.0L); in do_test()
71 result |= TEST_FUNC (p2.ld, m2.ld, 0.0L); in do_test()
73 result |= TEST_FUNC (m1.ld, p2.ld, -0.0L); in do_test()
77 result |= TEST_FUNC (m2.ld, p2.ld, -0.0L); in do_test()
/glibc-2.36/string/
Dtest-strcasecmp.c130 unsigned char *p2 = buf2 + page_size - 512; in do_random_tests() local
167 p2[i] = toupper (random () & 255); in do_random_tests()
168 if (i < len2 + align2 && !p2[i]) in do_random_tests()
170 p2[i] = toupper (random () & 255); in do_random_tests()
171 if (!p2[i]) in do_random_tests()
172 toupper (p2[i] = 1 + (random () & 127)); in do_random_tests()
177 memcpy (p2 + align2, p1 + align1, pos); in do_random_tests()
180 if (tolower (p2[align2 + pos]) == p1[align1 + pos]) in do_random_tests()
182 p2[align2 + pos] = toupper (random () & 255); in do_random_tests()
183 if (tolower (p2[align2 + pos]) == p1[align1 + pos]) in do_random_tests()
[all …]
Dtest-strcat.c128 UCHAR *p2 = (UCHAR *) (buf2 + page_size) - 512; in do_random_tests() local
182 MEMSET (p2 - 64, '\1', align2 + 64); in do_random_tests()
183 MEMSET (p2 + align2 + len2 + 1, '\1', 512 - align2 - len2 - 1); in do_random_tests()
184 MEMCPY (p2 + align2, p3, len2 + 1); in do_random_tests()
185 res = (UCHAR *) CALL (impl, (CHAR *) (p2 + align2), in do_random_tests()
187 if (res != p2 + align2) in do_random_tests()
191 p2 + align2); in do_random_tests()
196 if (p2[j - 64] != '\1') in do_random_tests()
204 if (MEMCMP (p2 + align2, p3, len2)) in do_random_tests()
212 if (p2[j] != '\1') in do_random_tests()
[all …]
Dtest-memcpy.c27 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()
Dtest-memmove.c127 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()
184 memcpy (p2 + srcstart, p1 + srcstart, srcend - srcstart); 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()
194 n, impl->name, align1, align2, len, res, p2 + align2); in do_random_tests()
198 if (memcmp (p1 + align1, p2 + align2, len)) in do_random_tests()
[all …]
Dstrverscmp.c45 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()
Dtest-strcmp.c177 UCHAR *p2 = (UCHAR *) (buf2 + page_size - 512 * CHARBYTES); in do_random_tests() local
221 p2[i] = random () & 255; in do_random_tests()
222 if (i < len2 + align2 && !p2[i]) in do_random_tests()
224 p2[i] = random () & 255; in do_random_tests()
225 if (!p2[i]) in do_random_tests()
226 p2[i] = 1 + (random () & 127); in do_random_tests()
231 MEMCPY (p2 + align2, p1 + align1, pos); in do_random_tests()
234 if (p2[align2 + pos] == p1[align1 + pos]) in do_random_tests()
236 p2[align2 + pos] = random () & 255; in do_random_tests()
237 if (p2[align2 + pos] == p1[align1 + pos]) in do_random_tests()
[all …]
Dtest-strcpy.c125 UCHAR *p2 = (UCHAR *) (buf2 + page_size) - 512; in do_random_tests() local
164 MEMSET (p2 - 64, '\1', 512 + 64); in do_random_tests()
165 res = (UCHAR *) CALL (impl, (CHAR *) (p2 + align2), (CHAR *) (p1 + align1)); in do_random_tests()
166 if (res != STRCPY_RESULT (p2 + align2, len)) in do_random_tests()
170 STRCPY_RESULT (p2 + align2, len)); in do_random_tests()
175 if (p2[j - 64] != '\1') in do_random_tests()
185 if (p2[j] != '\1') in do_random_tests()
193 if (MEMCMP (p1 + align1, p2 + align2, len + 1)) in do_random_tests()
Dtest-strncasecmp.c192 unsigned char *p2 = buf2 + page_size - 512; in do_random_tests() local
229 p2[i] = toupper (random () & 255); in do_random_tests()
230 if (i < len2 + align2 && !p2[i]) in do_random_tests()
232 p2[i] = toupper (random () & 255); in do_random_tests()
233 if (!p2[i]) in do_random_tests()
234 toupper (p2[i] = 1 + (random () & 127)); in do_random_tests()
239 memcpy (p2 + align2, p1 + align1, pos); in do_random_tests()
242 if (tolower (p2[align2 + pos]) == p1[align1 + pos]) in do_random_tests()
244 p2[align2 + pos] = toupper (random () & 255); in do_random_tests()
245 if (tolower (p2[align2 + pos]) == p1[align1 + pos]) in do_random_tests()
[all …]
Dtest-strncat.c197 UCHAR *p2 = (UCHAR *) (buf2 + page_size) - 512; in do_random_tests() local
253 MEMSET (p2 - 64, '\1', align2 + 64); in do_random_tests()
254 MEMSET (p2 + align2 + len2 + 1, '\1', 512 - align2 - len2 - 1); in do_random_tests()
255 MEMCPY (p2 + align2, p3, len2 + 1); in do_random_tests()
256 res = (UCHAR *) CALL (impl, (CHAR *) (p2 + align2), in do_random_tests()
258 if (res != p2 + align2) in do_random_tests()
263 res, p2 + align2); in do_random_tests()
268 if (p2[j - 64] != '\1') in do_random_tests()
277 if (MEMCMP (p2 + align2, p3, len2)) in do_random_tests()
291 if (p2[j] != '\1') in do_random_tests()
[all …]
Dtest-strncpy.c179 UCHAR *p2 = (UCHAR *) (buf2 + page_size) - 512; in do_random_tests() local
249 MEMSET (p2 - 64, '\1', 512 + 64); in do_random_tests()
250 res = (UCHAR *) CALL (impl, (CHAR *) (p2 + align2), in do_random_tests()
252 if (res != STRNCPY_RESULT (p2 + align2, len, size)) in do_random_tests()
256 STRNCPY_RESULT (p2 + align2, len, size)); in do_random_tests()
261 if (p2[j - 64] != '\1') in do_random_tests()
274 if (p2[j] != '\1') in do_random_tests()
283 if (p2[j]) in do_random_tests()
293 if (MEMCMP (p1 + align1, p2 + align2, j)) in do_random_tests()
Dtest-memcmp.c152 UCHAR *p2 = (UCHAR *) (buf2 + page_size - 512 * CHARBYTES); in do_random_tests() local
175 p2[i] = random () & 255; in do_random_tests()
179 MEMCPY ((CHAR *) p2 + align2, (const CHAR *) p1 + align1, len); in do_random_tests()
182 MEMCPY ((CHAR *) p2 + align2, (const CHAR *) p1 + align1, pos); in do_random_tests()
183 if (p2[align2 + pos] == p1[align1 + pos]) in do_random_tests()
185 p2[align2 + pos] = random () & 255; in do_random_tests()
186 if (p2[align2 + pos] == p1[align1 + pos]) in do_random_tests()
187 p2[align2 + pos] = p1[align1 + pos] + 3 + (random () & 127); in do_random_tests()
190 if (p1[align1 + pos] < p2[align2 + pos]) in do_random_tests()
198 r = CALL (impl, (CHAR *) p1 + align1, (const CHAR *) p2 + align2, in do_random_tests()
[all …]
Dtest-memccpy.c99 unsigned char *p2 = buf2 + page_size - 512; in do_random_tests() local
167 memset (p2 - 64, '\1', 512 + 64); in do_random_tests()
168 res = CALL (impl, p2 + align2, p1 + align1, (char) c, size); in do_random_tests()
172 expect = p2 + align2 + len + 1; in do_random_tests()
182 if (p2[j - 64] != '\1') in do_random_tests()
195 if (p2[j] != '\1') in do_random_tests()
206 if (memcmp (p1 + align1, p2 + align2, j)) in do_random_tests()
Dtest-strncmp.c262 UCHAR *p2 = (UCHAR *) (buf2 + page_size - 512 * CHARBYTES); in do_random_tests() local
300 p2[i] = random () & 255; in do_random_tests()
301 if (i < len2 + align2 && !p2[i]) in do_random_tests()
303 p2[i] = random () & 255; in do_random_tests()
304 if (!p2[i]) in do_random_tests()
305 p2[i] = 1 + (random () & 127); in do_random_tests()
310 MEMCPY (p2 + align2, p1 + align1, pos); in do_random_tests()
313 if (p2[align2 + pos] == p1[align1 + pos]) in do_random_tests()
315 p2[align2 + pos] = random () & 255; in do_random_tests()
316 if (p2[align2 + pos] == p1[align1 + pos]) in do_random_tests()
[all …]
/glibc-2.36/elf/
Ddl-cache.c356 _dl_cache_libcmp (const char *p1, const char *p2) in _dl_cache_libcmp() argument
362 if (*p2 >= '0' && *p2 <= '9') in _dl_cache_libcmp()
369 val2 = *p2++ - '0'; in _dl_cache_libcmp()
372 while (*p2 >= '0' && *p2 <= '9') in _dl_cache_libcmp()
373 val2 = val2 * 10 + *p2++ - '0'; in _dl_cache_libcmp()
380 else if (*p2 >= '0' && *p2 <= '9') in _dl_cache_libcmp()
382 else if (*p1 != *p2) in _dl_cache_libcmp()
383 return *p1 - *p2; in _dl_cache_libcmp()
387 ++p2; in _dl_cache_libcmp()
390 return *p1 - *p2; in _dl_cache_libcmp()
Ddblunload.c11 void *p2; in main() local
24 p2 = dlopen ("dblloadmod2.so", RTLD_LAZY); in main()
25 if (p2 == NULL) in main()
37 fp = dlsym (p2, "xyzzy"); in main()
46 if (dlclose (p2) != 0) in main()
/glibc-2.36/malloc/
Darena.c485 char *p1, *p2; in alloc_new_heap() local
505 p2 = MAP_FAILED; in alloc_new_heap()
508 p2 = (char *) MMAP (aligned_heap_area, max_size, PROT_NONE, mmap_flags); in alloc_new_heap()
510 if (p2 != MAP_FAILED && ((unsigned long) p2 & (max_size - 1))) in alloc_new_heap()
512 __munmap (p2, max_size); in alloc_new_heap()
513 p2 = MAP_FAILED; in alloc_new_heap()
516 if (p2 == MAP_FAILED) in alloc_new_heap()
521 p2 = (char *) (((unsigned long) p1 + (max_size - 1)) in alloc_new_heap()
523 ul = p2 - p1; in alloc_new_heap()
527 aligned_heap_area = p2 + max_size; in alloc_new_heap()
[all …]
Dtst-mxfast.c32 char *volatile p2; in do_test() local
37 p2 = malloc (512); in do_test()
52 free (p2); in do_test()
/glibc-2.36/debug/
Dtest-strcpy_chk.c149 unsigned char *p2 = buf2 + page_size - 512; in do_random_tests() local
220 CALL (impl, (char *) p2 + align2, in do_random_tests()
229 memset (p2 - 64, '\1', 512 + 64); in do_random_tests()
231 CALL (impl, (char *) p2 + align2, (char *) p1 + align1, dlen); in do_random_tests()
232 if (res != STRCPY_RESULT (p2 + align2, len)) in do_random_tests()
237 STRCPY_RESULT (p2 + align2, len)); in do_random_tests()
242 if (p2[j - 64] != '\1') in do_random_tests()
253 if (p2[j] != '\1') in do_random_tests()
262 if (memcmp (p1 + align1, p2 + align2, len + 1)) in do_random_tests()
/glibc-2.36/sysdeps/ieee754/flt-32/
De_lgammaf_r.c140 float t,y,z,nadj,p,p1,p2,p3,q,r,w; in __ieee754_lgammaf_r() local
194 p2 = z*(a1+z*(a3+z*(a5+z*(a7+z*(a9+z*a11))))); in __ieee754_lgammaf_r()
195 p = y*p1+p2; in __ieee754_lgammaf_r()
201 p2 = t1+w*(t4+w*(t7+w*(t10+w*t13))); in __ieee754_lgammaf_r()
203 p = z*p1-(tt-w*(p2+y*p3)); in __ieee754_lgammaf_r()
207 p2 = one+y*(v1+y*(v2+y*(v3+y*(v4+y*v5)))); in __ieee754_lgammaf_r()
208 r += (-(float)0.5*y + p1/p2); in __ieee754_lgammaf_r()
/glibc-2.36/sysdeps/ieee754/ldbl-96/
De_lgammal_r.c277 long double t, y, z, nadj, p, p1, p2, q, r, w; in __ieee754_lgammal_r() local
375 p2 = b0 + y * (b1 + y * (b2 + y * (b3 + y * (b4 + y)))); in __ieee754_lgammal_r()
376 r += half * y + y * p1/p2; in __ieee754_lgammal_r()
380 p2 = h0 + y * (h1 + y * (h2 + y * (h3 + y * (h4 + y * (h5 + y))))); in __ieee754_lgammal_r()
381 p = tt + y * p1/p2; in __ieee754_lgammal_r()
386 p2 = v0 + y * (v1 + y * (v2 + y * (v3 + y * (v4 + y * (v5 + y))))); in __ieee754_lgammal_r()
387 r += (-half * y + p1 / p2); in __ieee754_lgammal_r()
/glibc-2.36/sysdeps/ieee754/dbl-64/
De_lgamma_r.c205 double t,y,z,nadj,p,p1,p2,p3,q,r,w; in __ieee754_lgamma_r() local
259 p2 = z*(a1+z*(a3+z*(a5+z*(a7+z*(a9+z*a11))))); in __ieee754_lgamma_r()
260 p = y*p1+p2; in __ieee754_lgamma_r()
266 p2 = t1+w*(t4+w*(t7+w*(t10+w*t13))); in __ieee754_lgamma_r()
268 p = z*p1-(tt-w*(p2+y*p3)); in __ieee754_lgamma_r()
272 p2 = one+y*(v1+y*(v2+y*(v3+y*(v4+y*v5)))); in __ieee754_lgamma_r()
273 r += (-0.5*y + p1/p2); in __ieee754_lgamma_r()
/glibc-2.36/posix/
Dtst-vfork1.c53 pid_t p2 = 0; in do_test() local
54 if (TEMP_FAILURE_RETRY (read (fd[0], &p2, sizeof (pid_t))) != sizeof (pid_t)) in do_test()
120 if (p1 != p2) in do_test()
122 printf ("p1(%ld) != p2(%ld)\n", (long int) p1, (long int) p2); in do_test()
/glibc-2.36/intl/
Dlocalealias.c420 const unsigned char *p2 = (const unsigned char *) map2->alias; in alias_compare()
423 if (p1 == p2) in alias_compare()
431 c2 = isupper (*p2) ? tolower (*p2) : *p2; in alias_compare()
435 ++p2; in alias_compare()

123