Home
last modified time | relevance | path

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

123

/bionic/libm/upstream-freebsd/lib/msun/src/
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]; q[i] = fw; in __kernel_rem_pio2()
320 for(i=0,j=jz,z=q[jz];j>0;i++,j--) { in __kernel_rem_pio2()
323 z = q[j-1]+fw; in __kernel_rem_pio2()
343 j = iq[i]; in __kernel_rem_pio2()
345 if(j!=0) { in __kernel_rem_pio2()
346 carry = 1; iq[i] = 0x1000000- j; in __kernel_rem_pio2()
348 } else iq[i] = 0xffffff - j; in __kernel_rem_pio2()
[all …]
De_pow.c105 int32_t i,j,k,yisint,n; in pow() local
135 j = ly>>(52-k); in pow()
136 if(((u_int32_t)j<<(52-k))==ly) yisint = 2-(j&1); in pow()
138 j = iy>>(20-k); in pow()
139 if((j<<(20-k))==iy) yisint = 2-(j&1); in pow()
217 j = ix&0x000fffff; in pow()
219 ix = j|0x3ff00000; /* normalize ix */ in pow()
220 if(j<=0x3988E) k=0; /* |x|<sqrt(3/2) */ in pow()
221 else if(j<0xBB67A) k=1; /* |x|<sqrt(3) */ in pow()
266 EXTRACT_WORDS(j,i,z); in pow()
[all …]
De_powf.c63 int32_t i,j,k,yisint,n; in powf() local
91 j = iy>>(23-k); in powf()
92 if((j<<(23-k))==iy) yisint = 2-(j&1); in powf()
158 j = ix&0x007fffff; in powf()
160 ix = j|0x3f800000; /* normalize ix */ in powf()
161 if(j<=0x1cc471) k=0; /* |x|<sqrt(3/2) */ in powf()
162 else if(j<0x5db3d7) k=1; /* |x|<sqrt(3) */ in powf()
211 GET_FLOAT_WORD(j,z); in powf()
212 if (j>0x43000000) /* if z > 128 */ in powf()
214 else if (j==0x43000000) { /* if z == 128 */ in powf()
[all …]
Ds_floor.c36 u_int32_t i,j; in floor() local
64 j = i1+(1<<(52-j0)); in floor()
65 if(j<i1) i0 +=1 ; /* got a carry */ in floor()
66 i1=j; in floor()
Ds_ceil.c36 u_int32_t i,j; in ceil() local
63 j = i1 + (1<<(52-j0)); in ceil()
64 if(j<i1) i0+=1; /* got a carry */ in ceil()
65 i1 = j; in ceil()
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/
Dgdtoa.c159 int j, j1, k, k0, k_check, kind, leftright, m2, m5, nbits; local
211 if ( (j = 11 - hi0bits(word0(&d) & Frac_mask)) !=0)
212 dval(&d) /= 1 << j;
238 i += j;
243 if ((j = i) < 0)
244 j = -j;
245 if ((j -= 1077) > 0)
246 ds += j * 7e-17;
253 j = be + bbits - 1;
254 if ( (j1 = j & 3) !=0)
[all …]
Ddtoa.c119 j, j1, k, k0, k_check, leftright, m2, m5, s2, s5, local
212 if (( j = 11 - hi0bits(word0(&d2) & Frac_mask) )!=0)
213 dval(&d2) /= 1 << j;
241 i += j;
268 j = bbits - i - 1;
269 if (j >= 0) {
271 s2 = j;
274 b2 = -j;
349 j = k >> 4;
350 if (j & Bletch) {
[all …]
Dstrtodg.c186 int bdif, e, j, k, k1, nb, rv; local
250 if ( (j = nb & kmask) !=0)
251 j = ULbits - j;
252 if (hi0bits(b->x[b->wds - 1]) != j) {
348 int j, k, nbits, nd, nd0, nf, nz, nz0, rd, rvbits, rve, rve1, sign; local
665 for(j = 0; e1 > 0; j++, e1 >>= 1)
667 dval(&rv) *= bigtens[j];
687 for(j = 0; e1 > 0; j++, e1 >>= 1)
689 dval(&rv) *= tinytens[j];
704 if ((j = rvbits - nbits) > 0) {
[all …]
Dstrtod.c94 e, e1, esign, i, j, k, nd, nd0, nf, nz, nz0, sign; local
497 for(j = 0; e1 > 1; j++, e1 >>= 1)
499 dval(&rv) *= bigtens[j];
502 dval(&rv) *= bigtens[j];
526 for(j = 0; e1 > 0; j++, e1 >>= 1)
528 dval(&rv) *= tinytens[j];
529 if (scale && (j = 2*P + 1 - ((word0(&rv) & Exp_mask)
532 if (j >= 32) {
534 if (j >= 53)
537 word0(&rv) &= 0xffffffff << (j-32);
[all …]
Dhd_init.c43 int i, j; local
44 for(i = 0; (j = s[i]) !=0; i++)
45 h[j] = i + inc;
Dgethex.c48 int big, esign, havedig, irv, j, k, n, n0, nbits, up, zret; local
190 for(j = n, k = 0; j >>= 1; ++k);
195 for(j = 0; j < n0; ++j)
196 b->x[j] = ALL_ON;
198 b->x[j] = ULbits >> (ULbits - (nbits & kmask));
/bionic/libm/upstream-freebsd/lib/msun/bsdsrc/
Db_log.c364 int m, j; in __log__D() local
376 j = ilogb(g); in __log__D()
377 m += j; in __log__D()
378 g = ldexp(g, -j); in __log__D()
380 j = N * (g - 1) + 0.5; in __log__D()
381 F = (1. / N) * j + 1; in __log__D()
388 if (m | j) { in __log__D()
396 u1 += m * logF_head[N] + logF_head[j]; in __log__D()
398 u2 += logF_tail[j]; in __log__D()
/bionic/tests/
Dbuffer_tests.cpp339 for (size_t j = 0; j < 32; j++) { in RunCmpBufferAlignTest() local
340 buf1_align[len+j] = j; in RunCmpBufferAlignTest()
341 buf2_align[len+j] = j+1; in RunCmpBufferAlignTest()
396 for (size_t j = 0; j < pagesize; j++) { in RunSrcDstBufferOverreadTest() local
397 uint8_t* src = &memory[pagesize-j]; in RunSrcDstBufferOverreadTest()
399 test_func(src, dst, j); in RunSrcDstBufferOverreadTest()
446 for (size_t j = 1; j < miscmp_len; j++) { in RunCmpBufferOverreadTest() local
447 if (j == i) in RunCmpBufferOverreadTest()
450 uint8_t* buf2 = &memory2[pagesize-j]; in RunCmpBufferOverreadTest()
452 test_miscmp_func(buf1, buf2, i, j); in RunCmpBufferOverreadTest()
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Dlabs.c34 labs(long j) in labs() argument
36 return(j < 0 ? -j : j); in labs()
Dabs.c34 abs(int j) in abs() argument
36 return(j < 0 ? -j : j); in abs()
Dimaxabs.c35 imaxabs(intmax_t j) in imaxabs() argument
37 return (j < 0 ? -j : j); in imaxabs()
Dllabs.c35 llabs(long long j) in llabs() argument
37 return (j < 0 ? -j : j); in llabs()
/bionic/benchmarks/
Dproperty_benchmark.cpp62 for (int j = 0; j < name_lens[i]; j++) { in LocalPropertyTestState() local
63 if (j == 0 || names[i][j-1] == '.' || j == name_lens[i] - 1) { in LocalPropertyTestState()
73 names[i][j] = prop_name_chars[random() % prop_name_len]; in LocalPropertyTestState()
80 for (int j = 0; j < value_lens[i]; j++) { in LocalPropertyTestState() local
81 values[i][j] = prop_name_chars[random() % (sizeof(prop_name_chars) - 1)]; in LocalPropertyTestState()
Dmalloc_benchmark.cpp119 for (size_t j = 0; j < AllocCounts; ++j) { in RunThreadsThroughput() local
121 MemPool[j] = ptr; in RunThreadsThroughput()
128 for (size_t j = 0; j < AllocCounts; ++j) free(MemPool[j]); in RunThreadsThroughput() local
/bionic/libc/bionic/
Djemalloc_wrapper.cpp146 for (size_t j = 0; j < je_mallinfo_nbins(); j++) { in je_mallopt() local
147 struct mallinfo mi = je_mallinfo_bin_info(i, j); in je_mallopt()
156 " Bin %zu (%zu bytes): allocated bytes %zu nmalloc %zu ndalloc %zu", j, bin_size, in je_mallopt()
189 for (size_t j = 0; j < je_mallinfo_nbins(); j++) { in je_malloc_info() local
190 struct mallinfo mi = je_mallinfo_bin_info(i, j); in je_malloc_info()
192 MallocXmlElem bin_elem(fd, "bin", "nr=\"%d\"", j); in je_malloc_info()
/bionic/libm/upstream-freebsd/lib/msun/ld128/
De_powl.c153 int32_t i, j, k, yisint, n; in powl() local
295 j = ix & 0x0000ffff; in powl()
297 ix = j | 0x3fff0000; /* normalize ix */ in powl()
298 if (j <= 0x3988) in powl()
300 else if (j < 0xbb67) in powl()
380 j = o.parts32.mswhi; in powl()
381 if (j >= 0x400d0000) /* z >= 16384 */ in powl()
384 if (((j - 0x400d0000) | o.parts32.mswlo | o.parts32.lswhi | in powl()
393 else if ((j & 0x7fffffff) >= 0x400d01b9) /* z <= -16495 */ in powl()
396 if (((j - 0xc00d01bc) | o.parts32.mswlo | o.parts32.lswhi | in powl()
[all …]
De_rem_pio2l.h68 int e0,ex,i,j,nx; in __ieee754_rem_pio2l() local
85 j = ex; in __ieee754_rem_pio2l()
89 i = j-ex1; in __ieee754_rem_pio2l()
98 i = j-ex1; in __ieee754_rem_pio2l()
/bionic/libc/kernel/tools/
Dcpp.py545 j = self._index
552 param = self.tokens[j:k]
556 j = self._index + 1
1257 j = i + 3
1261 while j < num_tokens:
1262 if b.tokens[j].kind == TokenKind.PUNCTUATION:
1263 if b.tokens[j].id == '{':
1265 elif b.tokens[j].id == '}':
1267 elif b.tokens[j].id == ';' and depth == 0:
1268 b.tokens = b.tokens[0:i] + b.tokens[j + 1:num_tokens]
[all …]
/bionic/libc/upstream-openbsd/lib/libc/net/
Dres_random.c175 u_int16_t j, i; in res_initid() local
194 j = arc4random_uniform(RU_N); in res_initid()
204 if (j % pfacts[i] == 0) in res_initid()
210 j = (j + 1) % RU_N; in res_initid()
213 ru_g = pmod(RU_GEN, j, RU_N); in res_initid()
/bionic/libc/tzcode/
Dlocaltime.c678 int j; in tzloadbody() local
679 for (j = 0; j < charcnt; j++) in tzloadbody()
680 if (strcmp(sp->chars + j, tsabbr) == 0) { in tzloadbody()
681 ts->ttis[i].tt_desigidx = j; in tzloadbody()
685 if (! (j < charcnt)) { in tzloadbody()
687 if (j + tsabbrlen < TZ_MAX_CHARS) { in tzloadbody()
688 strcpy(sp->chars + j, tsabbr); in tzloadbody()
689 charcnt = j + tsabbrlen + 1; in tzloadbody()
690 ts->ttis[i].tt_desigidx = j; in tzloadbody()
1325 register int j; in tzparse() local
[all …]

123