Home
last modified time | relevance | path

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

123

/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
86 w = fn*pio2_1t; /* 1st round good to 180 bit */ in __ieee754_rem_pio2l()
91 y[0] = r-w; in __ieee754_rem_pio2l()
97 w = fn*pio2_2; in __ieee754_rem_pio2l()
98 r = t-w; in __ieee754_rem_pio2l()
99 w = fn*pio2_2t-((t-r)-w); in __ieee754_rem_pio2l()
100 y[0] = r-w; in __ieee754_rem_pio2l()
106 w = fn*pio2_3; in __ieee754_rem_pio2l()
107 r = t-w; in __ieee754_rem_pio2l()
108 w = fn*pio2_3t-((t-r)-w); in __ieee754_rem_pio2l()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dfvwrite.c53 int w, s; in __sfvwrite() local
85 w = (*fp->_write)(fp->_cookie, p, MIN(len, BUFSIZ)); 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 …]
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()
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_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_hypotf.c25 float a,b,t1,t2,y1,y2,w; in __ieee754_hypotf() local
40 w = fabsf(x+0.0F)-fabsf(y+0.0F); 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 …]
De_asin.c73 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 …]
De_hypot.c57 double a,b,t1,t2,y1,y2,w; in __ieee754_hypot() local
73 w = fabs(x+0.0)-fabs(y+0.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()
125 return t1*w; in __ieee754_hypot()
[all …]
Ds_asinhf.c30 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()
Ds_asinh.c40 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()
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()
De_asinf.c38 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()
Ds_rintf.c35 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()
Dk_cosf.c39 double r, w, z; in __kernel_cosdf() local
43 w = z*z; in __kernel_cosdf()
45 return ((one+z*C0) + w*C1) + (w*z)*r; in __kernel_cosdf()
De_cosh.c48 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()
De_rem_pio2.c57 double z,w,t,r,fn; in __ieee754_rem_pio2() local
139 w = fn*pio2_1t; /* 1st round good to 85 bit */ in __ieee754_rem_pio2()
143 y[0] = r-w; in __ieee754_rem_pio2()
148 w = fn*pio2_2; in __ieee754_rem_pio2()
149 r = t-w; in __ieee754_rem_pio2()
150 w = fn*pio2_2t-((t-r)-w); in __ieee754_rem_pio2()
151 y[0] = r-w; in __ieee754_rem_pio2()
156 w = fn*pio2_3; in __ieee754_rem_pio2()
157 r = t-w; in __ieee754_rem_pio2()
158 w = fn*pio2_3t-((t-r)-w); in __ieee754_rem_pio2()
[all …]
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()
Dk_tanf.c41 double z,r,w,s,t,u; in __kernel_tandf() local
60 w = z*z; in __kernel_tandf()
63 r = (x+s*u)+(s*w)*(t+w*r); in __kernel_tandf()
Ds_atanf.c51 float w,s1,s2,z; in atanf() local
83 w = z*z; in atanf()
85 s1 = z*(aT[0]+w*(aT[2]+w*aT[4])); in atanf()
86 s2 = w*(aT[1]+w*aT[3]); in atanf()
/bionic/libc/upstream-openbsd/lib/libc/string/
Dwcswidth.c37 int w, q; in wcswidth() local
39 w = 0; in wcswidth()
44 w += q; in wcswidth()
49 return w; in wcswidth()
/bionic/tests/
Dsys_select_test.cpp77 fd_set w; in TEST() local
78 FD_ZERO(&w); in TEST()
83 FD_SET(STDOUT_FILENO, &w); in TEST()
84 FD_SET(STDERR_FILENO, &w); in TEST()
89 ASSERT_EQ(-1, select(-1, &r, &w, &e, NULL)); in TEST()
92 ASSERT_EQ(2, select(max, &r, &w, &e, NULL)); in TEST()
98 ASSERT_EQ(-1, select(max, &r, &w, &e, &tv)); in TEST()
123 fd_set w; in TEST() local
124 FD_ZERO(&w); in TEST()
129 FD_SET(STDOUT_FILENO, &w); in TEST()
[all …]
Dpty_test.cpp25 struct winsize w = { 123, 456, 9999, 999 }; in TEST() local
26 ASSERT_EQ(0, openpty(&master, &slave, name, NULL, &w)); in TEST()
37 ASSERT_EQ(w_actual.ws_row, w.ws_row); in TEST()
38 ASSERT_EQ(w_actual.ws_col, w.ws_col); in TEST()
39 ASSERT_EQ(w_actual.ws_xpixel, w.ws_xpixel); in TEST()
40 ASSERT_EQ(w_actual.ws_ypixel, w.ws_ypixel); in TEST()

123