/bionic/libm/upstream-freebsd/lib/msun/ld128/ |
D | k_tanl.c | 66 long double z, r, v, w, s; in __kernel_tanl() local 78 w = pio4lo - y; in __kernel_tanl() 79 x = z + w; in __kernel_tanl() 85 w = z * z; in __kernel_tanl() 86 r = T5 + w * (T9 + w * (T13 + w * (T17 + w * (T21 + in __kernel_tanl() 87 w * (T25 + w * (T29 + w * (T33 + in __kernel_tanl() 88 w * (T37 + w * (T41 + w * (T45 + w * (T49 + w * (T53 + in __kernel_tanl() 89 w * T57)))))))))))); in __kernel_tanl() 90 v = z * (T7 + w * (T11 + w * (T15 + w * (T19 + w * (T23 + in __kernel_tanl() 91 w * (T27 + w * (T31 + w * (T35 + in __kernel_tanl() [all …]
|
D | e_rem_pio2l.h | 65 long double z,w,t,r,fn; in __ieee754_rem_pio2l() local 81 w = fn*pio2_1t; /* 1st round good to 180 bit */ in __ieee754_rem_pio2l() 86 y[0] = r-w; in __ieee754_rem_pio2l() 92 w = fn*pio2_2; in __ieee754_rem_pio2l() 93 r = t-w; in __ieee754_rem_pio2l() 94 w = fn*pio2_2t-((t-r)-w); in __ieee754_rem_pio2l() 95 y[0] = r-w; in __ieee754_rem_pio2l() 101 w = fn*pio2_3; in __ieee754_rem_pio2l() 102 r = t-w; in __ieee754_rem_pio2l() 103 w = fn*pio2_3t-((t-r)-w); in __ieee754_rem_pio2l() [all …]
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | k_tan.c | 80 double z, r, v, w, s; in __kernel_tan() local 91 w = pio4lo - y; in __kernel_tan() 92 x = z + w; in __kernel_tan() 96 w = z * z; in __kernel_tan() 102 r = T[1] + w * (T[3] + w * (T[5] + w * (T[7] + w * (T[9] + in __kernel_tan() 103 w * T[11])))); in __kernel_tan() 104 v = z * (T[2] + w * (T[4] + w * (T[6] + w * (T[8] + w * (T[10] + in __kernel_tan() 105 w * T[12]))))); in __kernel_tan() 109 w = x + r; in __kernel_tan() 113 (v - 2.0 * (x - (w * w / (w + v) - r))); in __kernel_tan() [all …]
|
D | s_atan.c | 76 double w,s1,s2,z; in atan() local 111 w = z*z; in atan() 113 s1 = z*(aT[0]+w*(aT[2]+w*(aT[4]+w*(aT[6]+w*(aT[8]+w*aT[10]))))); in atan() 114 s2 = w*(aT[1]+w*(aT[3]+w*(aT[5]+w*(aT[7]+w*aT[9])))); in atan()
|
D | k_log.h | 90 double hfsq,s,z,R,w,t1,t2; in k_log1p() local 94 w = z*z; in k_log1p() 95 t1= w*(Lg2+w*(Lg4+w*Lg6)); in k_log1p() 96 t2= z*(Lg1+w*(Lg3+w*(Lg5+w*Lg7))); in k_log1p()
|
D | e_hypotf.c | 25 float a,b,t1,t2,y1,y2,w; in __ieee754_hypotf() local 40 w = fabsl(x+0.0L)-fabsf(y+0); in __ieee754_hypotf() 41 if(ha == 0x7f800000) w = a; in __ieee754_hypotf() 42 if(hb == 0x7f800000) w = b; in __ieee754_hypotf() 43 return w; in __ieee754_hypotf() 66 w = a-b; in __ieee754_hypotf() 67 if (w>b) { in __ieee754_hypotf() 70 w = __ieee754_sqrtf(t1*t1-(b*(-b)-t2*(a+t1))); in __ieee754_hypotf() 77 w = __ieee754_sqrtf(t1*y1-(w*(-w)-(t1*y2+t2*b))); in __ieee754_hypotf() 81 return t1*w; in __ieee754_hypotf() [all …]
|
D | e_asinl.c | 37 long double t=0.0,w,p,q,c,r,s; in asinl() local 54 w = p/q; in asinl() 55 return x+x*w; in asinl() 58 w = one-fabsl(x); in asinl() 59 t = w*0.5; in asinl() 64 w = p/q; in asinl() 65 t = pio2_hi-(2.0*(s+s*w)-pio2_lo); in asinl() 69 w = u.e; in asinl() 70 c = (t-w*w)/(s+w); in asinl() 73 q = pio4_hi-2.0*w; in asinl()
|
D | e_asin.c | 73 double t=0.0,w,p,q,c,r,s; in __ieee754_asin() local 91 w = p/q; in __ieee754_asin() 92 return x+x*w; in __ieee754_asin() 95 w = one-fabs(x); in __ieee754_asin() 96 t = w*0.5; in __ieee754_asin() 101 w = p/q; in __ieee754_asin() 102 t = pio2_hi-(2.0*(s+s*w)-pio2_lo); in __ieee754_asin() 104 w = s; in __ieee754_asin() 105 SET_LOW_WORD(w,0); in __ieee754_asin() 106 c = (t-w*w)/(s+w); in __ieee754_asin() [all …]
|
D | e_hypot.c | 57 double a,b,t1,t2,y1,y2,w; in __ieee754_hypot() local 73 w = fabsl(x+0.0L)-fabs(y+0); in __ieee754_hypot() 75 if(((ha&0xfffff)|low)==0) w = a; in __ieee754_hypot() 77 if(((hb^0x7ff00000)|low)==0) w = b; in __ieee754_hypot() 78 return w; in __ieee754_hypot() 104 w = a-b; in __ieee754_hypot() 105 if (w>b) { in __ieee754_hypot() 109 w = sqrt(t1*t1-(b*(-b)-t2*(a+t1))); in __ieee754_hypot() 118 w = sqrt(t1*y1-(w*(-w)-(t1*y2+t2*b))); in __ieee754_hypot() 123 return t1*w; in __ieee754_hypot() [all …]
|
D | k_cos.c | 71 double hz,z,r,w; in __kernel_cos() local 74 w = z*z; in __kernel_cos() 75 r = z*(C1+z*(C2+z*C3)) + w*w*(C4+z*(C5+z*C6)); in __kernel_cos() 77 w = one-hz; in __kernel_cos() 78 return w + (((one-w)-hz) + (z*r-x*y)); in __kernel_cos()
|
D | k_sincos.h | 36 double hz, r, v, w, z; in __kernel_sincos() local 39 w = z * z; in __kernel_sincos() 40 r = S2 + z * (S3 + z * S4) + z * w * (S5 + z * S6); in __kernel_sincos() 48 r = z * (C1 + z * (C2 + z * C3)) + w * w * (C4 + z * (C5 + z * C6)); in __kernel_sincos() 50 w = 1 - hz; in __kernel_sincos() 51 *cs = w + (((1 - w) - hz) + (z * r - x * y)); in __kernel_sincos()
|
D | s_asinhf.c | 30 float t,w; in asinhf() local 39 w = __ieee754_logf(fabsf(x))+ln2; in asinhf() 42 w = __ieee754_logf((float)2.0*t+one/(__ieee754_sqrtf(x*x+one)+t)); in asinhf() 45 w =log1pf(fabsf(x)+t/(one+__ieee754_sqrtf(one+t))); in asinhf() 47 if(hx>0) return w; else return -w; in asinhf()
|
D | e_rem_pio2.c | 57 double z,w,t,r,fn; in __ieee754_rem_pio2() local 133 w = fn*pio2_1t; /* 1st round good to 85 bit */ in __ieee754_rem_pio2() 137 y[0] = r-w; in __ieee754_rem_pio2() 142 w = fn*pio2_2; in __ieee754_rem_pio2() 143 r = t-w; in __ieee754_rem_pio2() 144 w = fn*pio2_2t-((t-r)-w); in __ieee754_rem_pio2() 145 y[0] = r-w; in __ieee754_rem_pio2() 150 w = fn*pio2_3; in __ieee754_rem_pio2() 151 r = t-w; in __ieee754_rem_pio2() 152 w = fn*pio2_3t-((t-r)-w); in __ieee754_rem_pio2() [all …]
|
D | s_asinh.c | 40 double t,w; in asinh() local 49 w = __ieee754_log(fabs(x))+ln2; in asinh() 52 w = __ieee754_log(2.0*t+one/(__ieee754_sqrt(x*x+one)+t)); in asinh() 55 w =log1p(fabs(x)+t/(one+__ieee754_sqrt(one+t))); in asinh() 57 if(hx>0) return w; else return -w; in asinh()
|
D | e_asinf.c | 38 float t,w,p,q; in __ieee754_asinf() local 53 w = p/q; in __ieee754_asinf() 54 return x+x*w; in __ieee754_asinf() 57 w = one-fabsf(x); in __ieee754_asinf() 58 t = w*(float)0.5; in __ieee754_asinf() 62 w = p/q; in __ieee754_asinf() 63 t = pio2-2.0*(s+s*w); in __ieee754_asinf()
|
D | k_logf.h | 29 float hfsq,s,z,R,w,t1,t2; in k_log1pf() local 33 w = z*z; in k_log1pf() 34 t1= w*(Lg2+w*Lg4); in k_log1pf() 35 t2= z*(Lg1+w*Lg3); in k_log1pf()
|
D | e_hypotl.c | 51 long double a=x,b=y,t1,t2,y1,y2,w; in hypotl() local 67 w = fabsl(x+0.0L)-fabsl(y+0); in hypotl() 69 if (manh == LDBL_NBIT && manl == 0) w = a; in hypotl() 71 if (hb >= ESW(MAX_EXP) && manh == LDBL_NBIT && manl == 0) w = b; in hypotl() 72 return w; in hypotl() 99 w = a-b; in hypotl() 100 if (w>b) { in hypotl() 105 w = sqrtl(t1*t1-(b*(-b)-t2*(a+t1))); in hypotl() 115 w = sqrtl(t1*y1-(w*(-w)-(t1*y2+t2*b))); in hypotl() 122 return t1*w; in hypotl() [all …]
|
D | k_sincosf.h | 34 double r, s, w, z; in __kernel_sincosdf() local 37 w = z * z; in __kernel_sincosdf() 40 *sn = (x + s * (S1 + z * S2)) + s * w * r; in __kernel_sincosdf() 42 *cs = ((1 + z * C0) + w * C1) + (w * z) * r; in __kernel_sincosdf()
|
D | s_rintf.c | 35 float w,t; in rintf() local 42 STRICT_ASSIGN(float,w,TWO23[sx]+x); in rintf() 43 t = w-TWO23[sx]; in rintf() 48 STRICT_ASSIGN(float,w,TWO23[sx]+x); in rintf() 49 return w-TWO23[sx]; in rintf()
|
D | e_lgamma_r.c | 204 double nadj,p,p1,p2,p3,q,r,t,w,y,z; in __ieee754_lgamma_r() local 259 w = z*y; in __ieee754_lgamma_r() 260 p1 = t0+w*(t3+w*(t6+w*(t9 +w*t12))); /* parallel comp */ in __ieee754_lgamma_r() 261 p2 = t1+w*(t4+w*(t7+w*(t10+w*t13))); in __ieee754_lgamma_r() 262 p3 = t2+w*(t5+w*(t8+w*(t11+w*t14))); in __ieee754_lgamma_r() 263 p = z*p1-(tt-w*(p2+y*p3)); in __ieee754_lgamma_r() 292 w = w0+z*(w1+y*(w2+y*(w3+y*(w4+y*(w5+y*w6))))); in __ieee754_lgamma_r() 293 r = (x-half)*(t-one)+w; in __ieee754_lgamma_r()
|
D | e_cosh.c | 48 double t,w; in __ieee754_cosh() local 61 w = one+t; in __ieee754_cosh() 62 if (ix<0x3c800000) return w; /* cosh(tiny) = 1 */ in __ieee754_cosh() 63 return one+(t*t)/(w+w); in __ieee754_cosh()
|
D | s_asinhl.c | 71 long double t, w; in asinhl() local 82 w = logl(fabsl(x))+ln2; in asinhl() 85 w = logl(2.0*t+one/(sqrtl(x*x+one)+t)); in asinhl() 88 w =log1pl(fabsl(x)+t/(one+sqrtl(one+t))); in asinhl() 90 RETURNI((hx & 0x8000) == 0 ? w : -w); in asinhl()
|
/bionic/tests/ |
D | sys_select_test.cpp | 80 fd_set w; in TEST() local 81 FD_ZERO(&w); in TEST() 86 FD_SET(STDOUT_FILENO, &w); in TEST() 87 FD_SET(STDERR_FILENO, &w); in TEST() 92 ASSERT_EQ(-1, select(-1, &r, &w, &e, nullptr)); in TEST() 95 int num_fds = select(max, &r, &w, &e, nullptr); in TEST() 100 ASSERT_TRUE(FD_ISSET(STDOUT_FILENO, &w)); in TEST() 101 ASSERT_TRUE(FD_ISSET(STDERR_FILENO, &w)); in TEST() 110 ASSERT_EQ(-1, select(max, &r, &w, &e, &tv)); in TEST() 135 fd_set w; in TEST() local [all …]
|
/bionic/libm/upstream-netbsd/lib/libm/complex/ |
D | ctanl.c | 43 long double complex w; in ctanl() local 53 w = MAXNUM + MAXNUM * I; in ctanl() 54 return w; in ctanl() 57 w = sinl(2.0L * creall(z)) / d + (sinhl(2.0L * cimagl(z)) / d) * I; in ctanl() 58 return w; in ctanl()
|
/bionic/libc/upstream-openbsd/lib/libc/string/ |
D | wcswidth.c | 37 int w, q; in wcswidth() local 39 w = 0; in wcswidth() 44 w += q; in wcswidth() 49 return w; in wcswidth()
|