Home
last modified time | relevance | path

Searched refs:q (Results 1 – 25 of 44) sorted by relevance

12

/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Dtsearch.c27 node *q; in tsearch() local
42 q = malloc(sizeof(node)); /* T5: key not found */ in tsearch()
43 if (q != (struct node_t *)0) { /* make new node */ in tsearch()
44 *rootp = q; /* link new node to old */ in tsearch()
45 q->key = key; /* initialize new node */ in tsearch()
46 q->left = q->right = (struct node_t *)0; in tsearch()
48 return ((void *)q); in tsearch()
59 node *q; in tdelete() local
74 if ((q = (*rootp)->left) == (struct node_t *)0) /* Left (struct node_t *)0? */ in tdelete()
75 q = r; in tdelete()
[all …]
/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_remquof.c33 u_int32_t q,sxy; in remquof() local
46 q = 0; in remquof()
79 q = 0; in remquof()
83 else {hx = hz << 1; q++;} in remquof()
84 q <<= 1; in remquof()
87 if(hz>=0) {hx=hz;q++;} in remquof()
91 q &= 0x7fffffff; in remquof()
92 *quo = (sxy ? -q : q); in remquof()
109 if (x+x>y || (x+x==y && (q & 1))) { in remquof()
110 q++; in remquof()
[all …]
De_j1f.c228 const float *p,*q; in ponef() local
233 if(ix>=0x41000000) {p = pr8; q= ps8;} in ponef()
234 else if(ix>=0x409173eb){p = pr5; q= ps5;} in ponef()
235 else if(ix>=0x4036d917){p = pr3; q= ps3;} in ponef()
236 else {p = pr2; q= ps2;} /* ix>=0x40000000 */ in ponef()
239 s = one+z*(q[0]+z*(q[1]+z*(q[2]+z*(q[3]+z*q[4])))); in ponef()
325 const float *p,*q; in qonef() local
330 if(ix>=0x41000000) {p = qr8; q= qs8;} in qonef()
331 else if(ix>=0x409173eb){p = qr5; q= qs5;} in qonef()
332 else if(ix>=0x4036d917){p = qr3; q= qs3;} in qonef()
[all …]
De_j1.c273 const double *p,*q; in pone() local
278 if(ix>=0x40200000) {p = pr8; q= ps8;} in pone()
279 else if(ix>=0x40122E8B){p = pr5; q= ps5;} in pone()
280 else if(ix>=0x4006DB6D){p = pr3; q= ps3;} in pone()
281 else {p = pr2; q= ps2;} /* ix>=0x40000000 */ in pone()
284 s = one+z*(q[0]+z*(q[1]+z*(q[2]+z*(q[3]+z*q[4])))); in pone()
370 const double *p,*q; in qone() local
375 if(ix>=0x40200000) {p = qr8; q= qs8;} in qone()
376 else if(ix>=0x40122E8B){p = qr5; q= qs5;} in qone()
377 else if(ix>=0x4006DB6D){p = qr3; q= qs3;} in qone()
[all …]
Ds_remquo.c35 u_int32_t lx,ly,lz,q,sxy; in remquo() local
50 q = 0; in remquo()
105 q = 0; in remquo()
109 else {hx = hz+hz+(lz>>31); lx = lz+lz; q++;} in remquo()
110 q <<= 1; in remquo()
113 if(hz>=0) {hx=hz;lx=lz;q++;} in remquo()
117 q &= 0x7fffffff; in remquo()
118 *quo = (sxy ? -q : q); in remquo()
142 if (x+x>y || (x+x==y && (q & 1))) { in remquo()
143 q++; in remquo()
[all …]
De_j0.c279 const double *p,*q; in pzero() local
284 if(ix>=0x40200000) {p = pR8; q= pS8;} in pzero()
285 else if(ix>=0x40122E8B){p = pR5; q= pS5;} in pzero()
286 else if(ix>=0x4006DB6D){p = pR3; q= pS3;} in pzero()
287 else {p = pR2; q= pS2;} /* ix>=0x40000000 */ in pzero()
290 s = one+z*(q[0]+z*(q[1]+z*(q[2]+z*(q[3]+z*q[4])))); in pzero()
376 const double *p,*q; in qzero() local
381 if(ix>=0x40200000) {p = qR8; q= qS8;} in qzero()
382 else if(ix>=0x40122E8B){p = qR5; q= qS5;} in qzero()
383 else if(ix>=0x4006DB6D){p = qR3; q= qS3;} in qzero()
[all …]
De_j0f.c233 const float *p,*q; in pzerof() local
238 if(ix>=0x41000000) {p = pR8; q= pS8;} in pzerof()
239 else if(ix>=0x409173eb){p = pR5; q= pS5;} in pzerof()
240 else if(ix>=0x4036d917){p = pR3; q= pS3;} in pzerof()
241 else {p = pR2; q= pS2;} /* ix>=0x40000000 */ in pzerof()
244 s = one+z*(q[0]+z*(q[1]+z*(q[2]+z*(q[3]+z*q[4])))); in pzerof()
330 const float *p,*q; in qzerof() local
335 if(ix>=0x41000000) {p = qR8; q= qS8;} in qzerof()
336 else if(ix>=0x409173eb){p = qR5; q= qS5;} in qzerof()
337 else if(ix>=0x4036d917){p = qR3; q= qS3;} in qzerof()
[all …]
Ds_remquol.c74 int ix,iy,n,q,sx,sxy; in remquol() local
94 q = 0; in remquol()
127 q = 0; in remquol()
131 else {hx = hz+hz+(lz>>MANL_SHIFT); lx = lz+lz; q++;} in remquol()
132 q <<= 1; in remquol()
135 if(hz>=0) {hx=hz;lx=lz;q++;} in remquol()
139 q &= 0x7fffffff; in remquol()
140 *quo = (sxy ? -q : q); in remquol()
159 if (x+x>y || (x+x==y && (q & 1))) { in remquol()
160 q++; in remquol()
[all …]
De_sqrtf.c30 int32_t ix,s,q,m,t,i; in __ieee754_sqrtf() local
60 q = s = 0; /* q = sqrt(x) */ in __ieee754_sqrtf()
68 q += r; in __ieee754_sqrtf()
80 q += 2; in __ieee754_sqrtf()
82 q += (q&1); in __ieee754_sqrtf()
85 ix = (q>>1)+0x3f000000; in __ieee754_sqrtf()
De_asinl.c37 long double t=0.0,w,p,q,c,r,s; in asinl() local
53 q = Q(t); in asinl()
54 w = p/q; in asinl()
61 q = Q(t); in asinl()
64 w = p/q; in asinl()
71 r = p/q; in asinl()
73 q = pio4_hi-2.0*w; in asinl()
74 t = pio4_hi-(p-q); in asinl()
De_asin.c73 double t=0.0,w,p,q,c,r,s; in __ieee754_asin() local
90 q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4))); in __ieee754_asin()
91 w = p/q; in __ieee754_asin()
98 q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4))); in __ieee754_asin()
101 w = p/q; in __ieee754_asin()
107 r = p/q; in __ieee754_asin()
109 q = pio4_hi-2.0*w; in __ieee754_asin()
110 t = pio4_hi-(p-q); in __ieee754_asin()
De_acosf.c37 float z,p,q,r,w,s,c,df; in __ieee754_acosf() local
52 q = one+z*qS1; in __ieee754_acosf()
53 r = p/q; in __ieee754_acosf()
58 q = one+z*qS1; in __ieee754_acosf()
60 r = p/q; in __ieee754_acosf()
72 q = one+z*qS1; in __ieee754_acosf()
73 r = p/q; in __ieee754_acosf()
De_acosl.c47 long double z,p,q,r,w,s,c,df; in acosl() local
63 q = Q(z); in acosl()
64 r = p/q; in acosl()
69 q = Q(z); in acosl()
71 r = p/q; in acosl()
82 q = Q(z); in acosl()
83 r = p/q; in acosl()
De_asinf.c38 float t,w,p,q; in __ieee754_asinf() local
52 q = one+t*qS1; in __ieee754_asinf()
53 w = p/q; in __ieee754_asinf()
60 q = one+t*qS1; in __ieee754_asinf()
62 w = p/q; in __ieee754_asinf()
De_acos.c67 double z,p,q,r,w,s,c,df; in __ieee754_acos() local
84 q = one+z*(qS1+z*(qS2+z*(qS3+z*qS4))); in __ieee754_acos()
85 r = p/q; in __ieee754_acos()
90 q = one+z*(qS1+z*(qS2+z*(qS3+z*qS4))); in __ieee754_acos()
92 r = p/q; in __ieee754_acos()
102 q = one+z*(qS1+z*(qS2+z*(qS3+z*qS4))); in __ieee754_acos()
103 r = p/q; in __ieee754_acos()
De_sqrt.c99 int32_t ix0,s0,q,m,t,i; in __ieee754_sqrt() local
138 q = q1 = s0 = s1 = 0; /* [q,q1] = sqrt(x) */ in __ieee754_sqrt()
146 q += r; in __ieee754_sqrt()
175 if (q1==(u_int32_t)0xffffffff) { q1=0; q += 1;} in __ieee754_sqrt()
177 if (q1==(u_int32_t)0xfffffffe) q+=1; in __ieee754_sqrt()
183 ix0 = (q>>1)+0x3fe00000; in __ieee754_sqrt()
185 if ((q&1)==1) ix1 |= sign; in __ieee754_sqrt()
/bionic/libc/upstream-freebsd/lib/libc/string/
Dwcsspn.c45 const wchar_t *q; in wcsspn() local
49 q = set; in wcsspn()
50 while (*q) { in wcsspn()
51 if (*p == *q) in wcsspn()
53 q++; in wcsspn()
55 if (!*q) in wcsspn()
Dwcspbrk.c45 const wchar_t *q; in wcspbrk() local
49 q = set; in wcspbrk()
50 while (*q) { in wcspbrk()
51 if (*p == *q) { in wcspbrk()
55 q++; in wcspbrk()
Dwcscspn.c45 const wchar_t *q; in wcscspn() local
49 q = set; in wcscspn()
50 while (*q) { in wcscspn()
51 if (*p == *q) in wcscspn()
53 q++; in wcscspn()
Dwcsncat.c45 wchar_t *q; in wcsncat() local
51 q = p; in wcsncat()
54 *q++ = *r++; in wcsncat()
57 *q = '\0'; in wcsncat()
/bionic/libc/upstream-openbsd/lib/libc/string/
Dwcswidth.c37 int w, q; in wcswidth() local
41 q = wcwidth(*s); in wcswidth()
42 if (q == -1) in wcswidth()
44 w += q; in wcswidth()
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/
Ddmisc.c118 ULong *bx, *bxe, q, *sx, *sxe; local
139 q = *bxe / (*sxe + 1); /* ensure q <= true quotient */
141 /*debug*/ if (q > 9)
144 if (q) {
149 ys = *sx++ * (ULLong)q + carry;
157 ys = (si & 0xffff) * q + carry;
158 zs = (si >> 16) * q + (ys >> 16);
166 ys = *sx++ * q + carry;
183 q++;
224 return q;
/bionic/libm/upstream-freebsd/lib/msun/ld128/
Ds_expl.c207 long double hx2_hi, hx2_lo, q, r, r1, t, twomk, twopk, x_hi; in expm1l() local
250 q = x * x2 * C3 + x2 * x2 * (C4 + x * (C5 + x * (C6 + in expm1l()
256 q = x * x2 * D3 + x2 * x2 * (D4 + x * (D5 + x * (D6 + in expm1l()
268 RETURN2PI(hx2_hi + x_hi, hx2_lo + x_lo + q); in expm1l()
270 RETURN2PI(x, hx2_lo + q + hx2_hi); in expm1l()
292 q = r2 + r * r * (A2 + r * (A3 + r * (A4 + r * (A5 + r * (A6 + in expm1l()
298 t = SUM2P(tbl[n2].hi - 1, tbl[n2].lo * (r1 + 1) + t * q + in expm1l()
303 t = SUM2P(tbl[n2].hi - 2, tbl[n2].lo * (r1 + 1) + t * q + in expm1l()
308 t = SUM2P(tbl[n2].hi, tbl[n2].lo + t * (q + r1)); in expm1l()
312 t = SUM2P(tbl[n2].hi, tbl[n2].lo + t * (q + r1)); in expm1l()
[all …]
De_powl.c156 ieee_quad_shape_type o, p, q; in powl() local
162 q.value = y; in powl()
163 hy = q.parts32.mswhi; in powl()
168 if ((iy | q.parts32.mswlo | q.parts32.lswhi | q.parts32.lswlo) == 0) in powl()
175 && (q.parts32.mswlo | q.parts32.lswhi | q.parts32.lswlo) == 0) in powl()
184 && ((q.parts32.mswlo | q.parts32.lswhi | q.parts32.lswlo) != 0))) in powl()
211 if ((q.parts32.mswlo | q.parts32.lswhi | q.parts32.lswlo) == 0) in powl()
/bionic/libc/dns/net/
Dgetservent.c40 const char* q; in getservent_r() local
56 q = p + 1 + namelen + 3; /* skip name + port + proto */ in getservent_r()
57 count = q[0]; /* get aliascount */ in getservent_r()
58 q += 1; in getservent_r()
62 int len2 = q[0]; in getservent_r()
64 q += 1 + len2; in getservent_r()

12