Home
last modified time | relevance | path

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

1234

/picolibc-3.7.0-3.6.0/newlib/libc/string/
Dstr-two-way.h97 size_t j; /* Index into NEEDLE for current candidate suffix. */ in critical_factorization() local
113 j = 0; in critical_factorization()
115 while (j + k < needle_len) in critical_factorization()
117 a = CANON_ELEMENT (needle[j + k]); in critical_factorization()
122 j += k; in critical_factorization()
124 p = j - max_suffix; in critical_factorization()
133 j += p; in critical_factorization()
140 max_suffix = j++; in critical_factorization()
148 j = 0; in critical_factorization()
150 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-3.7.0-3.6.0/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-3.7.0-3.6.0/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()
208 for (j=0; int_tests[j].fmt; j++) { in test_snprintf()
209 … TEST(i, snprintf(b, sizeof b, int_tests[j].fmt, int_tests[j].i), (int) strlen(b), "%d != %d"); in test_snprintf()
210 TEST_S(b, int_tests[j].expect, "bad integer conversion"); in test_snprintf()
216 for (j=0; fp_tests[j].fmt; j++) { in test_snprintf()
217 TEST(i, snprintf(b, sizeof b, fp_tests[j].fmt, fp_tests[j].f), (int) strlen(b), "%d != %d"); in test_snprintf()
218 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-3.7.0-3.6.0/newlib/testsuite/newlib.iconv/
Diconvru.c391 int i, j, d = 0; in main() local
403 for (j = 0; j < conversions; j++) in main()
405 descs[d] = iconv_open(data[j].name, data[i].name); in main()
408 printf("iconv_open(%s, %s)\n", data[i].name, data[j].name); in main()
418 for (j = 0; j < conversions; j++) in main()
436 "returned -1\n", data[i].name, data[j].name); in main()
441 if (data[j].len != OUTBUF_LEN - outbytes) in main()
444 data[i].name, data[j].name); in main()
446 OUTBUF_LEN - (long) outbytes, (unsigned long) data[j].len); in main()
450 for (k = 0; k < data[j].len; k++) in main()
[all …]
Diconvjp.c880 int i, j, d = 0; in main() local
892 for (j = 0; j < conversions; j++) in main()
894 descs[d] = iconv_open(data[j].name, data[i].name); in main()
897 printf("iconv_open(%s, %s)\n", data[i].name, data[j].name); in main()
907 for (j = 0; j < conversions; j++) in main()
925 "returned -1\n", data[i].name, data[j].name); in main()
930 if (data[j].len != OUTBUF_LEN - outbytes) in main()
933 data[i].name, data[j].name); in main()
935 OUTBUF_LEN - (long) outbytes, (unsigned long) data[j].len); in main()
939 for (k = 0; k < data[j].len; k++) in main()
[all …]
/picolibc-3.7.0-3.6.0/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-3.7.0-3.6.0/newlib/libm/ld/common/
Dk_rem_pio2.c297 int32_t jz,jx,jv,jp,jk,carry,n,iq[20],i,j,k,m,q0,ih; in __kernel_rem_pio2() local
310 j = jv-jx; m = jx+jk; in __kernel_rem_pio2()
311 for(i=0;i<=m;i++,j++) f[i] = (j<0)? zero : (double) ipio2[j]; in __kernel_rem_pio2()
315 for(j=0,fw=0.0;j<=jx;j++) fw += x[j]*f[jx+i-j]; in __kernel_rem_pio2()
322 for(i=0,j=jz,z=q[jz];j>0;i++,j--) { in __kernel_rem_pio2()
325 z = q[j-1]+fw; in __kernel_rem_pio2()
345 j = iq[i]; in __kernel_rem_pio2()
347 if(j!=0) { in __kernel_rem_pio2()
348 carry = 1; iq[i] = 0x1000000- j; in __kernel_rem_pio2()
350 } else iq[i] = 0xffffff - j; in __kernel_rem_pio2()
[all …]
/picolibc-3.7.0-3.6.0/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()
243 GET_FLOAT_WORD(j, z); in powf()
244 i = j & 0x7fffffff; in powf()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/iconv/ces/
Deuc.c189 int j; in euc_convert_from_ucs() local
234 for (j = 0; j < d->desc[i].prefixbytes; j++) in euc_convert_from_ucs()
235 (*outbuf)[j] = d->desc[i].prefix[j]; in euc_convert_from_ucs()
238 for (j = 0; j < d->desc[i].bytes; j++) in euc_convert_from_ucs()
240 if ((*outbuf)[j + d->desc[i].prefixbytes] & 0x80) in euc_convert_from_ucs()
242 (*outbuf)[j + d->desc[i].prefixbytes] |= 0x80; in euc_convert_from_ucs()
343 int j; in euc_convert_to_ucs() local
366 for (j = 0; j < d->desc[i].bytes; j++) in euc_convert_to_ucs()
368 if (!((*inbuf)[j + d->desc[i].prefixbytes] & 0x80)) in euc_convert_to_ucs()
370 inbuf1[j] = (*inbuf)[j + d->desc[i].prefixbytes] & 0x7F; in euc_convert_to_ucs()
[all …]
/picolibc-3.7.0-3.6.0/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()
255 int j = order[i]; in main() local
256 uint8_t *new_block = realloc(blocks[j], size); in main()
258 blocks[j] = new_block; in main()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/
Dutoa.c37 int i, j; in __utoa() local
59 for (j = 0, i--; j < i; j++, i--) in __utoa()
61 c = str[j]; in __utoa()
62 str[j] = str[i]; in __utoa()
Dllabs.c57 llabs (long long j) in llabs() argument
59 return (j < 0 ? -j : j); in llabs()
Dimaxabs.c33 imaxabs(intmax_t j) in imaxabs() argument
35 return (j < 0 ? -j : j); in imaxabs()
Ddtoa.c223 int bbits, b2, b5, be, dig, i, ieps, ilim, ilim0, ilim1, j, j1, k, k0, in __dtoa() local
294 if (j = 11 - hi0bits (word0 (d2) & Frac_mask)) in __dtoa()
295 d2.d /= 1 << j; in __dtoa()
323 i += j; in __dtoa()
360 j = bbits - i - 1; in __dtoa()
361 if (j >= 0) in __dtoa()
364 s2 = j; in __dtoa()
368 b2 = -j; in __dtoa()
436 j = k >> 4; in __dtoa()
437 if (j & Bletch) in __dtoa()
[all …]
/picolibc-3.7.0-3.6.0/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-3.7.0-3.6.0/newlib/libm/test/
Ddcvt.c152 int j; in normalize() local
175 for (j = 0; j < 6; j++) in normalize()
177 while (value >= powers[j].pvalue) in normalize()
179 value /= powers[j].pvalue; in normalize()
180 texp += powers[j].exp; in normalize()
186 for (j = 0; j < 6; j++) in normalize()
188 while (value <= powers[j].nvalue) in normalize()
190 value *= powers[j].pvalue; in normalize()
191 texp -= powers[j].exp; in normalize()
504 int j = in.null_idx -1; in _dcvt() local
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/machine/w65/
Ddivsi3.c137 long int i, j, k, m; in main() local
140 for (j = -10000; j < 10000; j += 11) in main()
142 k = i / j; in main()
143 m = __divsi3 (i, j); in main()
145 printf ("fail %d %d %d %d\n", i, j, k, m); in main()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/h8500/
Ddivsi3.c137 long int i, j, k, m; in main() local
140 for (j = -10000; j < 10000; j += 11) in main()
142 k = i / j; in main()
143 m = __divsi3 (i, j); in main()
145 printf ("fail %d %d %d %d\n", i, j, k, m); in main()

1234