Home
last modified time | relevance | path

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

1234

/picolibc-latest/newlib/libc/string/
Dstr-two-way.h96 size_t j; /* Index into NEEDLE for current candidate suffix. */ in critical_factorization() local
112 j = 0; in critical_factorization()
114 while (j + k < needle_len) in critical_factorization()
116 a = CANON_ELEMENT (needle[j + k]); in critical_factorization()
121 j += k; in critical_factorization()
123 p = j - max_suffix; in critical_factorization()
132 j += p; in critical_factorization()
139 max_suffix = j++; in critical_factorization()
147 j = 0; in critical_factorization()
149 while (j + k < needle_len) in critical_factorization()
[all …]
Dstrverscmp.c67 size_t i, dp, j; in strverscmp() local
82 for (j=i; isdigit(l[j]); j++) in strverscmp()
83 if (!isdigit(r[j])) return 1; in strverscmp()
84 if (isdigit(r[j])) return -1; in strverscmp()
/picolibc-latest/newlib/testsuite/newlib.string/
Dmemcpy-1.c87 unsigned j; in main() local
105 for (j = 0; j < BUFF_SIZE; j++) in main()
106 dest[j] = 0; in main()
121 for (j = 0; j < BUFF_SIZE; j++) in main()
122 if (j < START_COPY + da) in main()
124 if (dest[j] != 0) in main()
128 n, sa, da, START_COPY - j); in main()
130 else if (j < START_COPY + da + n) in main()
132 i = j - START_COPY - da; in main()
133 if (dest[j] != (src + sa)[i]) in main()
[all …]
Dmemmove1.c138 size_t j; in main() local
139 for (j = 0; j < i; j++) in main()
142 xmemmove (to_test + MAX * 2 - i, to_test + MAX * 2 - i - j, i); in main()
145 mymemmove (to_known + MAX * 2 - i, to_known + MAX * 2 - i - j, i); in main()
152 (unsigned long) i, (unsigned long) j); in main()
160 size_t j; in main() local
161 for (j = 0; j < i; j++) in main()
164 xmemmove (to_test + MAX, to_test + MAX + j, i); in main()
167 mymemmove (to_known + MAX, to_known + MAX + j, i); in main()
174 (unsigned long) i, (unsigned long) j); in main()
/picolibc-latest/newlib/testsuite/newlib.iconv/
Diconvjp.c879 int i, j, d = 0; in main() local
891 for (j = 0; j < conversions; j++) in main()
893 descs[d] = iconv_open(data[j].name, data[i].name); in main()
896 printf("iconv_open(%s, %s)\n", data[i].name, data[j].name); in main()
906 for (j = 0; j < conversions; j++) in main()
924 "returned -1\n", data[i].name, data[j].name); in main()
929 if (data[j].len != OUTBUF_LEN - outbytes) in main()
932 data[i].name, data[j].name); in main()
934 OUTBUF_LEN - (long) outbytes, (unsigned long) data[j].len); in main()
938 for (k = 0; k < data[j].len; k++) in main()
[all …]
Diconvru.c390 int i, j, d = 0; in main() local
402 for (j = 0; j < conversions; j++) in main()
404 descs[d] = iconv_open(data[j].name, data[i].name); in main()
407 printf("iconv_open(%s, %s)\n", data[i].name, data[j].name); in main()
417 for (j = 0; j < conversions; j++) in main()
435 "returned -1\n", data[i].name, data[j].name); in main()
440 if (data[j].len != OUTBUF_LEN - outbytes) in main()
443 data[i].name, data[j].name); in main()
445 OUTBUF_LEN - (long) outbytes, (unsigned long) data[j].len); in main()
449 for (k = 0; k < data[j].len; k++) in main()
[all …]
/picolibc-latest/newlib/libc/argz/
Dbuf_findstr.c20 size_t j = 0; in _buf_findstr() local
26 j = i; in _buf_findstr()
27 while (str[j - i] && (str[j - i] == (*buf)[j])) j++; in _buf_findstr()
28 if(str[j - i] == '\0') in _buf_findstr()
30 *buf += j; in _buf_findstr()
31 *buf_len -= j; in _buf_findstr()
/picolibc-latest/test/libc-testsuite/
Dsnprintf.c169 int i, j, k; in test_snprintf() local
188 for (k=0, j=1023; j>0; j--) { in test_snprintf()
189 if (b[j]<'5') b[j]+=b[j]-'0'+k, k=0; in test_snprintf()
190 else b[j]+=b[j]-'0'-10+k, k=1; in test_snprintf()
235 for (j=0; int_tests[j].fmt; j++) { in test_snprintf()
236 … TEST(i, snprintf(b, sizeof b, int_tests[j].fmt, int_tests[j].i), (int) strlen(b), "%d != %d"); in test_snprintf()
237 TEST_S(b, int_tests[j].expect, "bad integer conversion"); in test_snprintf()
243 for (j=0; fp_tests[j].fmt; j++) { in test_snprintf()
244 TEST(i, snprintf(b, sizeof b, fp_tests[j].fmt, fp_tests[j].f), (int) strlen(b), "%d != %d"); in test_snprintf()
245 TEST_S(b, fp_tests[j].expect, "bad floating point conversion"); in test_snprintf()
Dstrtol.c137 for (int j = 0; j < 256; j++) { in test_strtol() local
138 delim_buf[4] = j; in test_strtol()
139 if (('0' <= j && j <= '9') || in test_strtol()
140 ('A' <= j && j <= 'F') || in test_strtol()
141 ('a' <= j && j <= 'f')) in test_strtol()
144 if ('0' <= j && j <= '9') in test_strtol()
145 k = j - '0'; in test_strtol()
146 else if ('A' <= j && j <= 'Z') in test_strtol()
147 k = j - 'A' + 10; in test_strtol()
148 else if ('a' <= j && j <= 'z') in test_strtol()
[all …]
/picolibc-latest/newlib/libm/ld/common/
Dk_rem_pio2.c296 int32_t jz,jx,jv,jp,jk,carry,n,iq[20],i,j,k,m,q0,ih; in __kernel_rem_pio2() local
309 j = jv-jx; m = jx+jk; in __kernel_rem_pio2()
310 for(i=0;i<=m;i++,j++) f[i] = (j<0)? zero : (double) ipio2[j]; in __kernel_rem_pio2()
314 for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j]; in __kernel_rem_pio2()
321 for(i=0,j=jz,z=q[jz];j>0;i++,j--) { in __kernel_rem_pio2()
324 z = q[j-1]+fw; in __kernel_rem_pio2()
344 j = iq[i]; in __kernel_rem_pio2()
346 if(j!=0) { in __kernel_rem_pio2()
347 carry = 1; iq[i] = 0x1000000- j; in __kernel_rem_pio2()
349 } else iq[i] = 0xffffff - j; in __kernel_rem_pio2()
[all …]
/picolibc-latest/newlib/libm/math/
Dkf_rem_pio2.c53 __int32_t jz, jx, jv, jp, jk, carry, n, iq[20], i, j, k, m, q0, ih; in __kernel_rem_pio2f() local
68 j = jv - jx; in __kernel_rem_pio2f()
70 for (i = 0; i <= m; i++, j++) in __kernel_rem_pio2f()
71 f[i] = (j < 0) ? zero : (float)ipio2[j]; in __kernel_rem_pio2f()
75 for (j = 0, fw = 0.0; j <= jx; j++) in __kernel_rem_pio2f()
76 fw += x[j] * f[jx + i - j]; in __kernel_rem_pio2f()
83 for (i = 0, j = jz, z = q[jz]; j > 0; i++, j--) { in __kernel_rem_pio2f()
86 z = q[j - 1] + fw; in __kernel_rem_pio2f()
109 j = iq[i]; in __kernel_rem_pio2f()
111 if (j != 0) { in __kernel_rem_pio2f()
[all …]
Dk_rem_pio2.c163 __int32_t jz, jx, jv, jp, jk, carry, n, iq[20], i, j, k, m, q0, ih; in __kernel_rem_pio2() local
178 j = jv - jx; in __kernel_rem_pio2()
180 for (i = 0; i <= m; i++, j++) in __kernel_rem_pio2()
181 f[i] = (j < 0) ? zero : (__float64)ipio2[j]; in __kernel_rem_pio2()
185 for (j = 0, fw = _F_64(0.0); j <= jx; j++) in __kernel_rem_pio2()
186 fw += x[j] * f[jx + i - j]; in __kernel_rem_pio2()
193 for (i = 0, j = jz, z = q[jz]; j > 0; i++, j--) { in __kernel_rem_pio2()
196 z = q[j - 1] + fw; in __kernel_rem_pio2()
219 j = iq[i]; in __kernel_rem_pio2()
221 if (j != 0) { in __kernel_rem_pio2()
[all …]
Ds_pow.c102 __int32_t i, j, k, yisint, n; in pow64() local
143 j = iy >> (20 - k); in pow64()
144 if ((j << (20 - k)) == iy) in pow64()
145 yisint = 2 - (j & 1); in pow64()
245 j = ix & 0x000fffff; in pow64()
247 ix = j | 0x3ff00000; /* normalize ix */ in pow64()
248 if (j <= 0x3988E) in pow64()
250 else if (j < 0xBB67A) in pow64()
305 EXTRACT_WORDS(j, i, z); in pow64()
306 if (j >= 0x40900000) { /* z >= 1024 */ in pow64()
[all …]
Dsf_pow.c61 __int32_t i, j, k, yisint, n; in powf() local
95 j = iy >> (23 - k); in powf()
96 if ((j << (23 - k)) == iy) in powf()
97 yisint = 2 - (j & 1); in powf()
180 j = ix & 0x007fffff; in powf()
182 ix = j | 0x3f800000; /* normalize ix */ in powf()
183 if (j <= 0x1cc471) in powf()
185 else if (j < 0x5db3d7) in powf()
244 GET_FLOAT_WORD(j, z); in powf()
245 i = j & 0x7fffffff; in powf()
[all …]
/picolibc-latest/newlib/libc/iconv/ces/
Deuc.c185 int j; in euc_convert_from_ucs() local
230 for (j = 0; j < d->desc[i].prefixbytes; j++) in euc_convert_from_ucs()
231 (*outbuf)[j] = d->desc[i].prefix[j]; in euc_convert_from_ucs()
234 for (j = 0; j < d->desc[i].bytes; j++) in euc_convert_from_ucs()
236 if ((*outbuf)[j + d->desc[i].prefixbytes] & 0x80) in euc_convert_from_ucs()
238 (*outbuf)[j + d->desc[i].prefixbytes] |= 0x80; in euc_convert_from_ucs()
339 int j; in euc_convert_to_ucs() local
362 for (j = 0; j < d->desc[i].bytes; j++) in euc_convert_to_ucs()
364 if (!((*inbuf)[j + d->desc[i].prefixbytes] & 0x80)) in euc_convert_to_ucs()
366 inbuf1[j] = (*inbuf)[j + d->desc[i].prefixbytes] & 0x7F; in euc_convert_to_ucs()
[all …]
/picolibc-latest/test/
Dmalloc_stress.c66 int j = randint(NUM_MALLOC - 1 - i) + i + 1; in shuffle_order() local
69 order[i] = order[j]; in shuffle_order()
70 order[j] = t; in shuffle_order()
105 size_t j; in check_block() local
109 for (j = 0; j < size; j++) in check_block()
110 if (block[j] != data) { in check_block()
112 which, i, (unsigned) j); in check_block()
256 int j = order[i]; in main() local
257 uint8_t *new_block = realloc(blocks[j], size); in main()
259 blocks[j] = new_block; in main()
[all …]
/picolibc-latest/newlib/libc/stdlib/
Dutoa.c38 int i, j; in __utoa() local
60 for (j = 0, i--; j < i; j++, i--) in __utoa()
62 c = str[j]; in __utoa()
63 str[j] = str[i]; in __utoa()
Dllabs.c57 llabs (long long j) in llabs() argument
59 return (j < 0 ? -j : j); in llabs()
Dimaxabs.c31 imaxabs(intmax_t j) in imaxabs() argument
33 return (j < 0 ? -j : j); in imaxabs()
Ddtoa.c222 int bbits, b2, b5, be, dig, i, ieps, ilim, ilim0, ilim1, j, j1, k, k0, in __dtoa() local
293 if (j = 11 - hi0bits (word0 (d2) & Frac_mask)) in __dtoa()
294 d2.d /= 1 << j; in __dtoa()
322 i += j; in __dtoa()
359 j = bbits - i - 1; in __dtoa()
360 if (j >= 0) in __dtoa()
363 s2 = j; in __dtoa()
367 b2 = -j; in __dtoa()
435 j = k >> 4; in __dtoa()
436 if (j & Bletch) in __dtoa()
[all …]
/picolibc-latest/newlib/libc/tinystdio/ryu/
Dd2s_intrinsics.h215 static inline uint64_t mulShift64(const uint64_t m, const uint64_t* const mul, const int32_t j) { in mulShift64() argument
218 return (uint64_t) (((b0 >> 64) + b2) >> (j - 64)); in mulShift64()
221 static inline uint64_t mulShiftAll64(const uint64_t m, const uint64_t* const mul, const int32_t j, in mulShiftAll64() argument
235 *vp = mulShift64(4 * m + 2, mul, j); in mulShiftAll64()
236 *vm = mulShift64(4 * m - 1 - mmShift, mul, j); in mulShiftAll64()
237 return mulShift64(4 * m, mul, j); in mulShiftAll64()
242 static inline uint64_t mulShift64(const uint64_t m, const uint64_t* const mul, const int32_t j) { in mulShift64() argument
252 return shiftright128(sum, high1, j - 64); in mulShift64()
255 static inline uint64_t mulShiftAll64(const uint64_t m, const uint64_t* const mul, const int32_t j, in mulShiftAll64() argument
257 *vp = mulShift64(4 * m + 2, mul, j); in mulShiftAll64()
[all …]
Df2s_intrinsics.h52 uint32_t __mulPow5InvDivPow2(const uint32_t m, const uint32_t q, const int32_t j);
53 #define mulPow5InvDivPow2(m,q,j) __mulPow5InvDivPow2(m,q,j) argument
55 uint32_t __mulPow5divPow2(const uint32_t m, const uint32_t i, const int32_t j);
56 #define mulPow5divPow2(m,i,j) __mulPow5divPow2(m,i,j) argument
/picolibc-latest/newlib/libm/test/
Ddcvt.c151 int j; in normalize() local
174 for (j = 0; j < 6; j++) in normalize()
176 while (value >= powers[j].pvalue) in normalize()
178 value /= powers[j].pvalue; in normalize()
179 texp += powers[j].exp; in normalize()
185 for (j = 0; j < 6; j++) in normalize()
187 while (value <= powers[j].nvalue) in normalize()
189 value *= powers[j].pvalue; in normalize()
190 texp -= powers[j].exp; in normalize()
503 int j = in.null_idx -1; in _dcvt() local
[all …]
/picolibc-latest/newlib/libc/machine/w65/
Ddivsi3.c141 long int i, j, k, m; in main() local
144 for (j = -10000; j < 10000; j += 11) in main()
146 k = i / j; in main()
147 m = __divsi3 (i, j); in main()
149 printf ("fail %d %d %d %d\n", i, j, k, m); in main()
/picolibc-latest/newlib/libc/machine/h8500/
Ddivsi3.c141 long int i, j, k, m; in main() local
144 for (j = -10000; j < 10000; j += 11) in main()
146 k = i / j; in main()
147 m = __divsi3 (i, j); in main()
149 printf ("fail %d %d %d %d\n", i, j, k, m); in main()

1234