/bionic/benchmarks/ |
D | stdlib_benchmark.cpp | 177 size_t i, j, k, l; in BM_stdlib_mbstowcs() local 180 for (j=0x80; j<0xc0; j++) in BM_stdlib_mbstowcs() 181 buf[l++] = i, buf[l++] = j; in BM_stdlib_mbstowcs() 183 for (j=0x80; j<0xc0; j++) in BM_stdlib_mbstowcs() 185 buf[l++] = i, buf[l++] = j, buf[l++] = k; in BM_stdlib_mbstowcs() 187 for (j=0x80; j<0xc0; j++) in BM_stdlib_mbstowcs() 189 buf[l++] = i, buf[l++] = j, buf[l++] = 0x80, buf[l++] = k; in BM_stdlib_mbstowcs() 217 size_t i, j, k, l; in BM_stdlib_mbrtowc() local 220 for (j=0x80; j<0xc0; j++) in BM_stdlib_mbrtowc() 221 buf[l++] = i, buf[l++] = j; in BM_stdlib_mbrtowc() [all …]
|
D | property_benchmark.cpp | 61 for (int j = 0; j < name_lens[i]; j++) { in LocalPropertyTestState() local 62 if (j == 0 || names[i][j-1] == '.' || j == name_lens[i] - 1) { in LocalPropertyTestState() 72 names[i][j] = prop_name_chars[random() % prop_name_len]; in LocalPropertyTestState() 79 for (int j = 0; j < value_lens[i]; j++) { in LocalPropertyTestState() local 80 values[i][j] = prop_name_chars[random() % (sizeof(prop_name_chars) - 1)]; in LocalPropertyTestState()
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | k_rem_pio2.c | 296 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 …]
|
D | e_pow.c | 105 int32_t i,j,k,yisint,n; in __ieee754_pow() local 135 j = ly>>(52-k); in __ieee754_pow() 136 if(((u_int32_t)j<<(52-k))==ly) yisint = 2-(j&1); in __ieee754_pow() 138 j = iy>>(20-k); in __ieee754_pow() 139 if((j<<(20-k))==iy) yisint = 2-(j&1); in __ieee754_pow() 217 j = ix&0x000fffff; in __ieee754_pow() 219 ix = j|0x3ff00000; /* normalize ix */ in __ieee754_pow() 220 if(j<=0x3988E) k=0; /* |x|<sqrt(3/2) */ in __ieee754_pow() 221 else if(j<0xBB67A) k=1; /* |x|<sqrt(3) */ in __ieee754_pow() 266 EXTRACT_WORDS(j,i,z); in __ieee754_pow() [all …]
|
D | e_powf.c | 63 int32_t i,j,k,yisint,n; in __ieee754_powf() local 91 j = iy>>(23-k); in __ieee754_powf() 92 if((j<<(23-k))==iy) yisint = 2-(j&1); in __ieee754_powf() 158 j = ix&0x007fffff; in __ieee754_powf() 160 ix = j|0x3f800000; /* normalize ix */ in __ieee754_powf() 161 if(j<=0x1cc471) k=0; /* |x|<sqrt(3/2) */ in __ieee754_powf() 162 else if(j<0x5db3d7) k=1; /* |x|<sqrt(3) */ in __ieee754_powf() 211 GET_FLOAT_WORD(j,z); in __ieee754_powf() 212 if (j>0x43000000) /* if z > 128 */ in __ieee754_powf() 214 else if (j==0x43000000) { /* if z == 128 */ in __ieee754_powf() [all …]
|
D | s_ceil.c | 36 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()
|
D | s_floor.c | 36 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()
|
/bionic/libm/upstream-freebsd/lib/msun/bsdsrc/ |
D | b_log.c | 367 int m, j; 386 j = logb(g), m += j; 387 g = ldexp(g, -j); 389 j = N*(g-1) + .5; 390 F = (1.0/N) * j + 1; /* F*128 is an integer in [128, 512] */ 403 if (m | j) 418 u1 += m*logF_head[N] + logF_head[j]; /* exact */ 419 u2 = (u2 + logF_tail[j]) + q; /* tiny */ 436 int m, j; local 447 j = logb(g), m += j; [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/ |
D | gdtoa.c | 159 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 …]
|
D | dtoa.c | 119 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 …]
|
D | strtodg.c | 186 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 …]
|
D | strtod.c | 94 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 …]
|
D | hd_init.c | 43 int i, j; local 44 for(i = 0; (j = s[i]) !=0; i++) 45 h[j] = i + inc;
|
/bionic/libc/bionic/ |
D | memmem.cpp | 44 size_t j = 0; in memmem() local 51 while (j <= n-m) { in memmem() 52 if (x[1] != y[j+1]) { in memmem() 53 j += k; in memmem() 55 if (!memcmp(x+2, y+j+2, m-2) && x[0] == y[j]) return const_cast<unsigned char*>(&y[j]); in memmem() 56 j += l; in memmem()
|
D | jemalloc_wrapper.cpp | 158 for (size_t j = 0; j < je_mallinfo_nbins(); j++) { in je_malloc_info() local 159 struct mallinfo mi = je_mallinfo_bin_info(i, j); in je_malloc_info() 161 MallocXmlElem bin_elem(fd, "bin", "nr=\"%d\"", j); in je_malloc_info()
|
/bionic/tests/ |
D | buffer_tests.cpp | 339 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()
|
D | system_properties_test.cpp | 266 for (int j = 0; j < 8; j++) { in TEST() local 268 ret = snprintf(prop_name, PROP_NAME_MAX - 1, "property_%d.%d.%d", i, j, k); in TEST() 270 ret = snprintf(prop_value, PROP_VALUE_MAX - 1, "value_%d.%d.%d", i, j, k); in TEST() 282 for (int j = 0; j < 8; j++) { in TEST() local 284 ret = snprintf(prop_name, PROP_NAME_MAX - 1, "property_%d.%d.%d", i, j, k); in TEST() 286 ret = snprintf(prop_value, PROP_VALUE_MAX - 1, "value_%d.%d.%d", i, j, k); in TEST() 303 for (int j = 0; j < 8; j++) { in TEST() local 305 ASSERT_TRUE(ok[i][j][k]); in TEST()
|
/bionic/libm/upstream-freebsd/lib/msun/ld128/ |
D | e_powl.c | 153 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 …]
|
/bionic/libc/upstream-openbsd/lib/libc/stdlib/ |
D | labs.c | 34 labs(long j) in labs() argument 36 return(j < 0 ? -j : j); in labs()
|
D | abs.c | 34 abs(int j) in abs() argument 36 return(j < 0 ? -j : j); in abs()
|
D | imaxabs.c | 35 imaxabs(intmax_t j) in imaxabs() argument 37 return (j < 0 ? -j : j); in imaxabs()
|
D | llabs.c | 35 llabs(long long j) in llabs() argument 37 return (j < 0 ? -j : j); in llabs()
|
/bionic/libc/kernel/tools/ |
D | cpp.py | 540 j = self._index 547 param = self.tokens[j:k] 551 j = self._index + 1 1229 j = i + 3 1230 while j < num_tokens - 1: 1231 if (b.tokens[j].kind == TokenKind.PUNCTUATION and 1232 b.tokens[j].id == "}" and 1233 b.tokens[j + 1].kind == TokenKind.PUNCTUATION and 1234 b.tokens[j + 1].id == ";"): 1235 b.tokens = b.tokens[0:i] + b.tokens[j + 2:num_tokens] [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/net/ |
D | res_random.c | 175 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/ |
D | localtime.c | 595 int j; in tzloadbody() local 596 for (j = 0; j < charcnt; j++) in tzloadbody() 597 if (strcmp(sp->chars + j, tsabbr) == 0) { in tzloadbody() 598 ts->ttis[i].tt_abbrind = j; in tzloadbody() 602 if (! (j < charcnt)) { in tzloadbody() 604 if (j + tsabbrlen < TZ_MAX_CHARS) { in tzloadbody() 605 strcpy(sp->chars + j, tsabbr); in tzloadbody() 606 charcnt = j + tsabbrlen + 1; in tzloadbody() 607 ts->ttis[i].tt_abbrind = j; in tzloadbody() 1152 register int j; in tzparse() local [all …]
|