Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 86) sorted by relevance

1234

/bionic/libm/upstream-freebsd/lib/msun/ld128/
Dk_tanl.c66 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 …]
De_rem_pio2l.h65 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/libc/upstream-openbsd/lib/libc/stdio/
Dfvwrite.c54 int w, s; in __sfvwrite() local
85 w = (*fp->_write)(fp->_cookie, p, MIN(len, INT_MAX)); in __sfvwrite()
86 if (w <= 0) in __sfvwrite()
88 p += w; in __sfvwrite()
89 len -= w; in __sfvwrite()
90 } while ((uio->uio_resid -= w) != 0); in __sfvwrite()
124 w = fp->_w; in __sfvwrite()
126 if (len < w) in __sfvwrite()
127 w = len; in __sfvwrite()
128 COPY(w); /* copy MIN(fp->_w,len), */ in __sfvwrite()
[all …]
/bionic/libm/upstream-freebsd/lib/msun/src/
Dk_tan.c80 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 …]
Ds_atan.c76 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()
De_hypotf.c25 float a,b,t1,t2,y1,y2,w; in hypotf() local
40 w = fabsl(x+0.0L)-fabsf(y+0); in hypotf()
41 if(ha == 0x7f800000) w = a; in hypotf()
42 if(hb == 0x7f800000) w = b; in hypotf()
43 return w; in hypotf()
66 w = a-b; in hypotf()
67 if (w>b) { in hypotf()
70 w = sqrtf(t1*t1-(b*(-b)-t2*(a+t1))); in hypotf()
77 w = sqrtf(t1*y1-(w*(-w)-(t1*y2+t2*b))); in hypotf()
81 return t1*w; in hypotf()
[all …]
De_asin.c73 double t=0.0,w,p,q,c,r,s; in asin() local
91 w = p/q; in asin()
92 return x+x*w; in asin()
95 w = one-fabs(x); in asin()
96 t = w*0.5; in asin()
101 w = p/q; in asin()
102 t = pio2_hi-(2.0*(s+s*w)-pio2_lo); in asin()
104 w = s; in asin()
105 SET_LOW_WORD(w,0); in asin()
106 c = (t-w*w)/(s+w); in asin()
[all …]
De_asinl.c37 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()
De_hypot.c57 double a,b,t1,t2,y1,y2,w; in hypot() local
73 w = fabsl(x+0.0L)-fabs(y+0); in hypot()
75 if(((ha&0xfffff)|low)==0) w = a; in hypot()
77 if(((hb^0x7ff00000)|low)==0) w = b; in hypot()
78 return w; in hypot()
104 w = a-b; in hypot()
105 if (w>b) { in hypot()
109 w = sqrt(t1*t1-(b*(-b)-t2*(a+t1))); in hypot()
118 w = sqrt(t1*y1-(w*(-w)-(t1*y2+t2*b))); in hypot()
123 return t1*w; in hypot()
[all …]
Dk_log.h90 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()
Dk_cos.c71 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()
De_rem_pio2.c57 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 …]
Dk_sincos.h36 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()
De_lgamma_r.c204 double nadj,p,p1,p2,p3,q,r,t,w,y,z; in lgamma_r() local
259 w = z*y; in lgamma_r()
260 p1 = t0+w*(t3+w*(t6+w*(t9 +w*t12))); /* parallel comp */ in lgamma_r()
261 p2 = t1+w*(t4+w*(t7+w*(t10+w*t13))); in lgamma_r()
262 p3 = t2+w*(t5+w*(t8+w*(t11+w*t14))); in lgamma_r()
263 p = z*p1-(tt-w*(p2+y*p3)); in lgamma_r()
292 w = w0+z*(w1+y*(w2+y*(w3+y*(w4+y*(w5+y*w6))))); in lgamma_r()
293 r = (x-half)*(t-one)+w; in lgamma_r()
De_hypotl.c51 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 …]
De_asinf.c38 float t,w,p,q; in asinf() local
53 w = p/q; in asinf()
54 return x+x*w; in asinf()
57 w = one-fabsf(x); in asinf()
58 t = w*(float)0.5; in asinf()
62 w = p/q; in asinf()
63 t = pio2-2.0*(s+s*w); in asinf()
Ds_asinhf.c30 float t,w; in asinhf() local
39 w = logf(fabsf(x))+ln2; in asinhf()
42 w = logf((float)2.0*t+one/(sqrtf(x*x+one)+t)); in asinhf()
45 w =log1pf(fabsf(x)+t/(one+sqrtf(one+t))); in asinhf()
47 if(hx>0) return w; else return -w; in asinhf()
Ds_asinh.c40 double t,w; in asinh() local
49 w = log(fabs(x))+ln2; in asinh()
52 w = log(2.0*t+one/(sqrt(x*x+one)+t)); in asinh()
55 w =log1p(fabs(x)+t/(one+sqrt(one+t))); in asinh()
57 if(hx>0) return w; else return -w; in asinh()
De_log.c91 double hfsq,f,s,z,R,w,t1,t2,dk; in log() local
129 w = z*z; in log()
131 t1= w*(Lg2+w*(Lg4+w*Lg6)); in log()
132 t2= z*(Lg1+w*(Lg3+w*(Lg5+w*Lg7))); in log()
Dk_logf.h29 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()
Ds_asinhl.c71 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()
Dcatrigl.c171 long double complex w; in casinhl() local
190 w = clog_for_large_values(z) + m_ln2; in casinhl()
192 w = clog_for_large_values(-z) + m_ln2; in casinhl()
193 return (CMPLXL(copysignl(creall(w), x), in casinhl()
194 copysignl(cimagl(w), y))); in casinhl()
216 long double complex w; in casinl() local
218 w = casinhl(CMPLXL(cimagl(z), creall(z))); in casinl()
219 return (CMPLXL(cimagl(w), creall(w))); in casinl()
228 long double complex w; in cacosl() local
248 w = clog_for_large_values(z); in cacosl()
[all …]
Dk_sincosf.h34 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()
/bionic/tests/
Dsys_select_test.cpp80 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/
Dctanl.c43 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()

1234