Home
last modified time | relevance | path

Searched refs:j (Results 1 – 25 of 589) sorted by relevance

12345678910>>...24

/glibc-2.36/string/
Dtest-strncmp.c258 size_t i, j, n, align1, align2, pos, len1, len2, size; in do_random_tests() local
273 j = align1 > align2 ? align1 : align2; in do_random_tests()
274 if (pos + j >= 511) in do_random_tests()
275 pos = 510 - j - (random () & 7); in do_random_tests()
279 if (len1 + j >= 512) in do_random_tests()
280 len1 = 511 - j - (random () & 7); in do_random_tests()
284 len2 = len1 + (len1 != 511 - j ? random () % (511 - j - len1) : 0); in do_random_tests()
285 j = (pos > len2 ? pos : len2) + align1 + 64; in do_random_tests()
286 if (j > 512) in do_random_tests()
287 j = 512; in do_random_tests()
[all …]
Dtest-strncasecmp.c188 size_t i, j, n, align1, align2, pos, len1, len2; in do_random_tests() local
202 j = align1 > align2 ? align1 : align2; in do_random_tests()
203 if (pos + j >= 511) in do_random_tests()
204 pos = 510 - j - (random () & 7); in do_random_tests()
208 if (len1 + j >= 512) in do_random_tests()
209 len1 = 511 - j - (random () & 7); in do_random_tests()
213 len2 = len1 + (len1 != 511 - j ? random () % (511 - j - len1) : 0); in do_random_tests()
214 j = (pos > len2 ? pos : len2) + align1 + 64; in do_random_tests()
215 if (j > 512) in do_random_tests()
216 j = 512; in do_random_tests()
[all …]
Dstr-two-way.h123 size_t j; /* Index into NEEDLE for current candidate suffix. */ in critical_factorization() local
139 j = 0; in critical_factorization()
141 while (j + k < needle_len) in critical_factorization()
143 a = CANON_ELEMENT (needle[j + k]); in critical_factorization()
148 j += k; in critical_factorization()
150 p = j - max_suffix; in critical_factorization()
159 j += p; in critical_factorization()
166 max_suffix = j++; in critical_factorization()
174 j = 0; in critical_factorization()
176 while (j + k < needle_len) in critical_factorization()
[all …]
Dtest-memcpy-large.c46 size_t i, j; in test_main() local
59 for (j = 64; j <= 1024; j <<= 1) in test_main()
61 do_test1 (0, j, i); in test_main()
62 do_test1 (4095, j, i); in test_main()
63 do_test1 (4096 - j, 0, i); in test_main()
65 do_test1 (0, j - 1, i); in test_main()
66 do_test1 (4095, j - 1, i); in test_main()
67 do_test1 (4096 - j - 1, 0, i); in test_main()
69 do_test1 (0, j + 1, i); in test_main()
70 do_test1 (4095, j + 1, i); in test_main()
[all …]
Dtest-memcpy.c25 size_t i, j, n, align1, align2, len, size1, size2, size; in do_random_tests() local
82 j = align1 + len + 256; in do_random_tests()
83 if (j > size1) in do_random_tests()
84 j = size1; in do_random_tests()
85 for (i = 0; i < j; ++i) in do_random_tests()
90 j = align2 + len + 256; in do_random_tests()
91 if (j > size2) in do_random_tests()
92 j = size2; in do_random_tests()
93 memset (p2, c, j); in do_random_tests()
116 for (i = align2 + len; i < j; ++i) in do_random_tests()
[all …]
Dtest-strcasecmp.c126 size_t i, j, n, align1, align2, pos, len1, len2; in do_random_tests() local
140 j = align1 > align2 ? align1 : align2; in do_random_tests()
141 if (pos + j >= 511) in do_random_tests()
142 pos = 510 - j - (random () & 7); in do_random_tests()
146 if (len1 + j >= 512) in do_random_tests()
147 len1 = 511 - j - (random () & 7); in do_random_tests()
151 len2 = len1 + (len1 != 511 - j ? random () % (511 - j - len1) : 0); in do_random_tests()
152 j = (pos > len2 ? pos : len2) + align1 + 64; in do_random_tests()
153 if (j > 512) in do_random_tests()
154 j = 512; in do_random_tests()
[all …]
Dtest-memccpy.c97 size_t i, j, n, align1, align2, len, size, mode; in do_random_tests() local
116 j = align1; in do_random_tests()
118 align2 = j; in do_random_tests()
135 j = align1; in do_random_tests()
136 if (align2 > j) in do_random_tests()
137 j = align2; in do_random_tests()
141 if (size + j > 512) in do_random_tests()
142 size = 512 - j - (random() & 31); in do_random_tests()
145 size = 512 - j; in do_random_tests()
146 if ((mode & 8) && len + j >= 512) in do_random_tests()
[all …]
Dtest-strcmp.c193 size_t j = align1 > align2 ? align1 : align2; in do_random_tests() local
194 if (pos + j >= 511) in do_random_tests()
195 pos = 510 - j - (random () & 7); in do_random_tests()
199 if (len1 + j >= 512) in do_random_tests()
200 len1 = 511 - j - (random () & 7); in do_random_tests()
205 len2 = len1 + (len1 != 511 - j ? random () % (511 - j - len1) : 0); in do_random_tests()
206 j = (pos > len2 ? pos : len2) + align1 + 64; in do_random_tests()
207 if (j > 512) in do_random_tests()
208 j = 512; in do_random_tests()
209 for (size_t i = 0; i < j; ++i) in do_random_tests()
[all …]
Dtest-strncpy.c177 size_t i, j, n, align1, align2, len, size, mode; in do_random_tests() local
199 j = align1; in do_random_tests()
201 align2 = j; in do_random_tests()
218 j = align1; in do_random_tests()
219 if (align2 > j) in do_random_tests()
220 j = align2; in do_random_tests()
224 if (size + j > 512) in do_random_tests()
225 size = 512 - j - (random () & 31); in do_random_tests()
228 size = 512 - j; in do_random_tests()
229 if ((mode & 8) && len + j >= 512) in do_random_tests()
[all …]
Dtest-strncat.c135 size_t i, j, len; in do_overflow_tests() local
142 for (j = 0; j < 200; ++j) in do_overflow_tests()
143 s2[j] = 32 + 23 * j % (BIG_CHAR - 32); in do_overflow_tests()
146 for (j = 0; j < i; ++j) in do_overflow_tests()
147 s1[j] = 32 + 23 * j % (BIG_CHAR - 32); in do_overflow_tests()
165 for (j = 8 * sizeof(size_t) - 1; j ; --j) in do_overflow_tests()
167 len |= one << j; in do_overflow_tests()
195 size_t i, j, n, align1, align2, len1, len2, N; in do_random_tests() local
216 j = align1; in do_random_tests()
217 if (align2 + len2 > j) in do_random_tests()
[all …]
Dtest-strcat.c126 size_t i, j, n, align1, align2, len1, len2; in do_random_tests() local
145 j = align1; in do_random_tests()
146 if (align2 + len2 > j) in do_random_tests()
147 j = align2 + len2; in do_random_tests()
148 if (len1 + j >= 511) in do_random_tests()
149 len1 = 510 - j - (random () & 7); in do_random_tests()
154 j = 510 - align1 - len1 - (random () & 31); in do_random_tests()
155 if (j > 0 && j < 512) in do_random_tests()
156 align1 += j; in do_random_tests()
158 j = len1 + align1 + 64; in do_random_tests()
[all …]
/glibc-2.36/benchtests/
Dbench-pthread-locks.c94 for (long j = iters; j >= 0; --j) in test_mutex() local
115 for (long j = iters; j >= 0; --j) in test_mutex_trylock() local
135 for (long j = iters; j >= 0; --j) in test_rwlock_read() local
156 for (long j = iters; j >= 0; --j) in test_rwlock_tryread() local
176 for (long j = iters; j >= 0; --j) in test_rwlock_write() local
197 for (long j = iters; j >= 0; --j) in test_rwlock_trywrite() local
217 for (long j = iters; j >= 0; --j) in test_spin_lock() local
238 for (long j = iters; j >= 0; --j) in test_spin_trylock() local
258 for (long j = iters; j >= 0; --j) in test_sem_wait() local
278 for (long j = iters; j >= 0; --j) in test_sem_trywait() local
[all …]
Dbench-memcpy-random.c106 int i, j, freq, size, n; in init_copy_distribution() local
109 for (j = 0, size = size_freq[i].size; j < freq; j++) in init_copy_distribution()
114 for (j = 0, size = src_align_freq[i].align; j < freq; j++) in init_copy_distribution()
119 for (j = 0, size = dst_align_freq[i].align; j < freq; j++) in init_copy_distribution()
132 for (int j = 0; j < n; j++) in do_one_test() local
133 CALL (impl, dst + copy[j].dst, src + copy[j].src, copy[j].len); in do_one_test()
137 for (int j = 0; j < n; j++) in do_one_test() local
138 CALL (impl, dst + copy[j].dst, src + copy[j].src, copy[j].len); in do_one_test()
/glibc-2.36/sysdeps/pthread/
Dtst-key4.c92 int j; in do_test() local
95 for (j = 0; j < N; ++j) in do_test()
96 if (pthread_create (&th[j], NULL, tf1, NULL) != 0) in do_test()
102 for (j = 0; j < N; ++j) in do_test()
103 if (pthread_join (th[j], NULL) != 0) in do_test()
109 for (j = 0; j < N; ++j) in do_test()
110 if (pthread_create (&th[j], NULL, tf2, NULL) != 0) in do_test()
116 for (j = 0; j < N; ++j) in do_test()
117 if (pthread_join (th[j], NULL) != 0) in do_test()
Dtst-barrier3.c43 int j; in worker() local
59 for (j = nr; j < NTHREADS; ++j) in worker()
63 ++counters[j]; in worker()
67 retval = pthread_barrier_wait (&barriers[j]); in worker()
70 if (nr == 0 && counters[j] != j + 1) in worker()
73 j, counters[j]); in worker()
82 nr, j); in worker()
88 ++serial[j]; in worker()
94 retval = pthread_barrier_wait (&barriers[j]); in worker()
97 if (nr == 0 && serial[j] != 1) in worker()
[all …]
/glibc-2.36/sysdeps/ieee754/dbl-64/
Dk_rem_pio2.c161 int32_t jz, jx, jv, jp, jk, carry, n, iq[20], i, j, k, m, q0, ih; in __kernel_rem_pio2() local
175 j = jv - jx; m = jx + jk; in __kernel_rem_pio2()
176 for (i = 0; i <= m; i++, j++) in __kernel_rem_pio2()
177 f[i] = (j < 0) ? zero : (double) ipio2[j]; in __kernel_rem_pio2()
182 for (j = 0, fw = 0.0; j <= jx; j++) in __kernel_rem_pio2()
183 fw += x[j] * f[jx + i - j]; in __kernel_rem_pio2()
190 for (i = 0, j = jz, z = q[jz]; j > 0; i++, j--) in __kernel_rem_pio2()
194 z = q[j - 1] + fw; in __kernel_rem_pio2()
219 j = iq[i]; in __kernel_rem_pio2()
222 if (j != 0) in __kernel_rem_pio2()
[all …]
/glibc-2.36/elf/
Dtst-dlmopen2.c23 for (int j = 0; j < DL_NNS - 1; ++j) in do_test() local
25 h[j] = dlmopen (LM_ID_NEWLM, "$ORIGIN/tst-dlmopen1mod.so", in do_test()
27 if (h[j] == NULL) in do_test()
30 i, j, dlerror ()); in do_test()
34 if (dlinfo (h[j], RTLD_DI_LMID, &ns) != 0) in do_test()
37 i, j, dlerror ()); in do_test()
43 i, j, (long int) ns); in do_test()
50 i, j, (long int) ns); in do_test()
57 for (int j = 0; j < DL_NNS - 1; ++j) in do_test() local
58 if (dlclose (h[j]) != 0) in do_test()
[all …]
/glibc-2.36/nis/
Dnis_getservlist.c61 unsigned long int j; in nis_getservlist() local
62 for (j = 0; j < serv[i]->ep.ep_len; ++j) in nis_getservlist()
64 free (serv[i]->ep.ep_val[j].proto); in nis_getservlist()
65 free (serv[i]->ep.ep_val[j].family); in nis_getservlist()
66 free (serv[i]->ep.ep_val[j].uaddr); in nis_getservlist()
94 unsigned long int j; in nis_getservlist() local
104 for (j = 0; j < serv[i]->ep.ep_len; ++j) in nis_getservlist()
106 if (server->ep.ep_val[j].uaddr) in nis_getservlist()
107 serv[i]->ep.ep_val[j].uaddr = in nis_getservlist()
108 strdup (server->ep.ep_val[j].uaddr); in nis_getservlist()
[all …]
/glibc-2.36/time/
Dtst-strftime2.c90 int i, j, k, yr; in mkreftable() local
113 for (j = 0; j < array_length (formats); j++) in mkreftable()
139 sprintf (ref[i][j][k], "%s\u5143%s", era, sfx); in mkreftable()
140 else if (j == 0) in mkreftable()
141 sprintf (ref[i][j][k], "%s%02d%s", era, abs (yr), sfx); in mkreftable()
142 else if (j == 1) in mkreftable()
143 sprintf (ref[i][j][k], "%s%2d%s", era, abs (yr), sfx); in mkreftable()
144 else if (j == 2) in mkreftable()
145 sprintf (ref[i][j][k], "%s%d%s", era, abs (yr), sfx); in mkreftable()
154 int i, j, k, result = 0; in do_test() local
[all …]
/glibc-2.36/sysdeps/unix/sysv/linux/alpha/
Dc++-types.data2 blkcnt_t:j
3 blksize_t:j
13 fsfilcnt_t:j
15 gid_t:j
16 id_t:j
18 ino_t:j
26 mode_t:j
27 nlink_t:j
36 pthread_key_t:j
50 socklen_t:j
[all …]
/glibc-2.36/posix/
Dbug-regex19.c344 int i, j; in do_mb_tests() local
359 for (j = 0; j < 7; ++j) in do_mb_tests()
360 if (i & (1 << j)) in do_mb_tests()
362 if (!strchr (test->pattern, chars[j]) in do_mb_tests()
363 && !strchr (test->string, chars[j])) in do_mb_tests()
365 *p++ = chars[j]; in do_mb_tests()
367 if (j < 7) in do_mb_tests()
371 for (j = 0, p = pattern; test->pattern[j]; ++j) in do_mb_tests()
372 if (strchr (repl, test->pattern[j])) in do_mb_tests()
373 p = replace (p, test->pattern[j]); in do_mb_tests()
[all …]
/glibc-2.36/malloc/
Dtst-calloc.c39 int j; in fixed_test() local
46 for (j = 0; j < size; ++j) in fixed_test()
48 if (ptrs[i][j] != '\0') in fixed_test()
51 size, i, j); in fixed_test()
52 ptrs[i][j] = '\xff'; in fixed_test()
69 int j; in random_test() local
79 for (j = 0; j < size; ++j) in random_test()
81 if (ptrs[i][j] != '\0') in random_test()
84 size, i, j); in random_test()
85 ptrs[i][j] = '\xff'; in random_test()
/glibc-2.36/sysdeps/ieee754/flt-32/
Dlgamma_negf.c217 int j = floorf (-8 * x) - 16; in __lgamma_negf() local
218 float xm = (-33 - 2 * j) * 0.0625f; in __lgamma_negf()
220 size_t deg = poly_deg[j]; in __lgamma_negf()
221 size_t end = poly_end[j]; in __lgamma_negf()
223 for (size_t j = 1; j <= deg; j++) in __lgamma_negf() local
224 g = g * x_adj + poly_coeff[end - j]; in __lgamma_negf()
268 for (size_t j = 1; j < NCOEFF; j++) in __lgamma_negf() local
272 bterm[j] = dnext * lgamma_coeff[j]; in __lgamma_negf()
277 for (size_t j = 0; j < NCOEFF; j++) in __lgamma_negf() local
278 log_gamma_low += bterm[NCOEFF - 1 - j]; in __lgamma_negf()
/glibc-2.36/stdlib/
Dtst-makecontext2.c29 cf (int i, int j) in cf() argument
31 if (i != 78 || j != 274) in cf()
33 printf ("i %d j %d\n", i, j); in cf()
46 for (size_t j = 32; j < 64; j += sizeof (long)) in do_test() local
61 ucp.uc_stack.ss_size = sizeof (st1) - j; in do_test()
62 memset (&st1[sizeof (st1) - j], 0x55, j); in do_test()
70 for (size_t i = j; i > 0; i--) in do_test()
71 if (st1[sizeof (st1) - j + i - 1] != 0x55) in do_test()
72 { printf ("fail %zd %zd\n", i, j); break; } in do_test()
/glibc-2.36/sysdeps/ieee754/ldbl-96/
Dlgamma_negl.c336 int j = floorl (-8 * x) - 16; in __lgamma_negl() local
337 long double xm = (-33 - 2 * j) * 0.0625L; in __lgamma_negl()
339 size_t deg = poly_deg[j]; in __lgamma_negl()
340 size_t end = poly_end[j]; in __lgamma_negl()
342 for (size_t j = 1; j <= deg; j++) in __lgamma_negl() local
343 g = g * x_adj + poly_coeff[end - j]; in __lgamma_negl()
405 for (size_t j = 1; j < NCOEFF; j++) in __lgamma_negl() local
409 bterm[j] = dnext * lgamma_coeff[j]; in __lgamma_negl()
414 for (size_t j = 0; j < NCOEFF; j++) in __lgamma_negl() local
415 log_gamma_low += bterm[NCOEFF - 1 - j]; in __lgamma_negl()

12345678910>>...24