/bionic/libc/kernel/common/linux/ |
D | rbtree.h | 32 #define rb_parent(r) ((struct rb_node *)((r)->rb_parent_color & ~3)) argument 33 #define rb_color(r) ((r)->rb_parent_color & 1) argument 34 #define rb_is_red(r) (!rb_color(r)) argument 35 #define rb_is_black(r) rb_color(r) argument 36 #define rb_set_red(r) do { (r)->rb_parent_color &= ~1; } while (0) argument 37 #define rb_set_black(r) do { (r)->rb_parent_color |= 1; } while (0) argument
|
/bionic/libc/stdlib/ |
D | ldiv.c | 39 ldiv_t r; in ldiv() local 43 r.quot = num / denom; in ldiv() 44 r.rem = num % denom; in ldiv() 45 if (num >= 0 && r.rem < 0) { in ldiv() 46 r.quot++; in ldiv() 47 r.rem -= denom; in ldiv() 49 return (r); in ldiv()
|
D | lldiv.c | 39 lldiv_t r; in lldiv() local 43 r.quot = num / denom; in lldiv() 44 r.rem = num % denom; in lldiv() 45 if (num >= 0 && r.rem < 0) { in lldiv() 46 r.quot++; in lldiv() 47 r.rem -= denom; in lldiv() 49 return (r); in lldiv()
|
D | div.c | 39 div_t r; in div() local 41 r.quot = num / denom; in div() 42 r.rem = num % denom; in div() 66 if (num >= 0 && r.rem < 0) { in div() 67 r.quot++; in div() 68 r.rem -= denom; in div() 70 return (r); in div()
|
D | qsort.c | 87 int d, r, swaptype, swap_cnt; in qsort() local 116 while (pb <= pc && (r = cmp(pb, a)) <= 0) { in qsort() 117 if (r == 0) { in qsort() 124 while (pb <= pc && (r = cmp(pc, a)) >= 0) { in qsort() 125 if (r == 0) { in qsort() 148 r = min(pa - (char *)a, pb - pa); in qsort() 149 vecswap(a, pb - r, r); in qsort() 150 r = min(pd - pc, pn - pd - (int)es); in qsort() 151 vecswap(pb, pn - r, r); in qsort() 152 if ((r = pb - pa) > (int)es) in qsort() [all …]
|
/bionic/libm/src/ |
D | s_fmal.c | 53 long double r, rr, s; in fmal() local 88 r = x * y; in fmal() 90 r = nextafterl(r, 0); in fmal() 92 return (r); in fmal() 97 r = x * y; in fmal() 99 r = nextafterl(r, -INFINITY); in fmal() 101 return (r); in fmal() 106 r = x * y; in fmal() 108 r = nextafterl(r, INFINITY); in fmal() 110 return (r); in fmal() [all …]
|
D | s_fma.c | 58 double r, rr, s; in fma() local 93 r = x * y; in fma() 95 r = nextafter(r, 0); in fma() 97 return (r); in fma() 102 r = x * y; in fma() 104 r = nextafter(r, -INFINITY); in fma() 106 return (r); in fma() 111 r = x * y; in fma() 113 r = nextafter(r, INFINITY); in fma() 115 return (r); in fma() [all …]
|
D | k_tanf.c | 42 double z,r,w,s,t,u; in __kernel_tandf() local 59 r = T[4]+z*T[5]; in __kernel_tandf() 64 r = (x+s*u)+(s*w)*(t+w*r); in __kernel_tandf() 65 if(iy==1) return r; in __kernel_tandf() 66 else return -1.0/r; in __kernel_tandf()
|
D | s_cbrtf.c | 41 float r,s,t,w; in cbrtf() local 63 r=t*t/x; in cbrtf() 64 s=C+r*t; in cbrtf() 73 r=x/s; in cbrtf() 75 r=(r-t)/(w+r); /* r-t is exact */ in cbrtf() 76 t=t+t*r; in cbrtf()
|
D | s_exp2f.c | 93 float r, z; in exp2f() local 127 r = tv + tv * (z * (P1 + z * (P2 + z * (P3 + z * P4)))); in exp2f() 132 GET_FLOAT_WORD(hr, r); in exp2f() 133 SET_FLOAT_WORD(r, hr + k); in exp2f() 135 return (r); in exp2f() 137 GET_FLOAT_WORD(hr, r); in exp2f() 138 SET_FLOAT_WORD(r, hr + (k + (100 << 23))); in exp2f() 139 return (r * twom100); in exp2f()
|
D | e_sqrt.c | 99 u_int32_t r,t1,s1,ix1,q1; in __ieee754_sqrt() local 138 r = 0x00200000; /* r = moving bit from right to left */ in __ieee754_sqrt() 140 while(r!=0) { in __ieee754_sqrt() 141 t = s0+r; in __ieee754_sqrt() 143 s0 = t+r; in __ieee754_sqrt() 145 q += r; in __ieee754_sqrt() 149 r>>=1; in __ieee754_sqrt() 152 r = sign; in __ieee754_sqrt() 153 while(r!=0) { in __ieee754_sqrt() 154 t1 = s1+r; in __ieee754_sqrt() [all …]
|
D | s_cbrt.c | 40 double r,s,t=0.0,w; in cbrt() local 76 r=t*t/x; in cbrt() 77 s=C+r*t; in cbrt() 86 r=x/s; in cbrt() 88 r=(r-t)/(w+r); /* r-t is exact */ in cbrt() 89 t=t+t*r; in cbrt()
|
D | s_exp2.c | 340 double r, t, z; in exp2() local 375 r = t + t * z * (P1 + z * (P2 + z * (P3 + z * (P4 + z * P5)))); in exp2() 380 GET_HIGH_WORD(hr, r); in exp2() 381 SET_HIGH_WORD(r, hr + k); in exp2() 383 return (r); in exp2() 385 GET_HIGH_WORD(hr, r); in exp2() 386 SET_HIGH_WORD(r, hr + (k + (1000 << 20))); in exp2() 387 return (r * twom1000); in exp2()
|
D | e_sqrtf.c | 31 u_int32_t r; in __ieee754_sqrtf() local 61 r = 0x01000000; /* r = moving bit from right to left */ in __ieee754_sqrtf() 63 while(r!=0) { in __ieee754_sqrtf() 64 t = s+r; in __ieee754_sqrtf() 66 s = t+r; in __ieee754_sqrtf() 68 q += r; in __ieee754_sqrtf() 71 r>>=1; in __ieee754_sqrtf()
|
D | e_rem_pio2.c | 78 double z,w,t,r,fn; in __ieee754_rem_pio2() local 116 r = t-fn*pio2_1; in __ieee754_rem_pio2() 119 y[0] = r-w; /* quick check no cancellation */ in __ieee754_rem_pio2() 123 y[0] = r-w; in __ieee754_rem_pio2() 127 t = r; in __ieee754_rem_pio2() 129 r = t-w; in __ieee754_rem_pio2() 130 w = fn*pio2_2t-((t-r)-w); in __ieee754_rem_pio2() 131 y[0] = r-w; in __ieee754_rem_pio2() 135 t = r; /* will cover all possible cases */ in __ieee754_rem_pio2() 137 r = t-w; in __ieee754_rem_pio2() [all …]
|
D | k_tan.c | 81 double z, r, v, w, s; in __kernel_tan() local 103 r = T[1] + w * (T[3] + w * (T[5] + w * (T[7] + w * (T[9] + in __kernel_tan() 108 r = y + z * (s * (r + v) + y); in __kernel_tan() 109 r += T[0] * s; in __kernel_tan() 110 w = x + r; in __kernel_tan() 114 (v - 2.0 * (x - (w * w / (w + v) - r))); in __kernel_tan() 127 v = r - (z - x); /* z+v = r+x */ in __kernel_tan()
|
D | k_sin.c | 63 double z,r,v; in __kernel_sin() local 67 r = S2+z*(S3+z*(S4+z*(S5+z*S6))); in __kernel_sin() 68 if(iy==0) return x+v*(S1+z*r); in __kernel_sin() 69 else return x-((z*(half*y-v*r)-y)-v*S1); in __kernel_sin()
|
D | k_cosf.c | 40 double r, w, z; in __kernel_cosdf() local 45 r = C2+z*C3; in __kernel_cosdf() 46 return ((one+z*C0) + w*C1) + (w*z)*r; in __kernel_cosdf()
|
D | k_sinf.c | 39 double r, s, w, z; in __kernel_sindf() local 44 r = S3+z*S4; in __kernel_sindf() 46 return (x + s*(S1+z*S2)) + s*w*r; in __kernel_sindf()
|
D | k_cos.c | 72 double hz,z,r,w; in __kernel_cos() local 75 r = z*(C1+z*(C2+z*(C3+z*(C4+z*(C5+z*C6))))); in __kernel_cos() 78 return w + (((one-w)-hz) + (z*r-x*y)); in __kernel_cos()
|
/bionic/libc/unistd/ |
D | getdtablesize.c | 33 struct rlimit r; in getdtablesize() local 35 if (getrlimit(RLIMIT_NOFILE, &r) < 0) { in getdtablesize() 38 return r.rlim_cur; in getdtablesize()
|
/bionic/libm/bsdsrc/ |
D | b_tgamma.c | 190 struct Double yy, r; local 197 r.a = y; 198 TRUNC(r.a); 199 yy.a = r.a - one; 201 yy.b = r.b = y - yy.a; 204 t = r.a*yy.a; 205 r.b = r.a*yy.b + y*r.b; 206 r.a = t; 207 TRUNC(r.a); 208 r.b += (t - r.a); [all …]
|
/bionic/libm/alpha/ |
D | fenv.c | 48 union __fpcr r; in fegetenv() local 56 __mf_fpcr(&r.__d); in fegetenv() 57 *envp = r.__bits | p.mask; in fegetenv() 66 union __fpcr r; in feholdexcept() local 69 __mf_fpcr(&r.__d); in feholdexcept() 70 *envp = r.__bits | p.mask; in feholdexcept() 71 r.__bits &= ~((fenv_t)FE_ALL_EXCEPT << _FPUSW_SHIFT); in feholdexcept() 72 __mt_fpcr(r.__d); in feholdexcept() 85 union __fpcr r; in fesetenv() local 89 r.__bits = *envp & ~FE_ALL_EXCEPT; in fesetenv() [all …]
|
/bionic/libc/kernel/tools/ |
D | update_all.py | 66 r = b.editFile( dst_path, newdata ) variable 67 if r == 0: 68 r = "unchanged" variable 69 elif r == 1: 70 r = "edited" variable 72 r = "added" variable 74 print "cleaning: %-*s -> %-*s (%s)" % ( 35, path, 35, dst_path, r )
|
/bionic/libc/stdio/ |
D | fclose.c | 45 int r; in fclose() local 52 r = fp->_flags & __SWR ? __sflush(fp) : 0; in fclose() 54 r = EOF; in fclose() 64 return (r); in fclose()
|