Home
last modified time | relevance | path

Searched refs:r (Results 1 – 25 of 94) sorted by relevance

1234

/bionic/libc/upstream-netbsd/lib/libc/stdlib/
Ddiv.c49 div_t r; in div() local
51 r.quot = num / denom; in div()
52 r.rem = num % denom; in div()
76 if (num >= 0 && r.rem < 0) { in div()
77 r.quot++; in div()
78 r.rem -= denom; in div()
80 return (r); in div()
Dldiv.c49 ldiv_t r; in ldiv() local
53 r.quot = num / denom; in ldiv()
54 r.rem = num % denom; in ldiv()
55 if (num >= 0 && r.rem < 0) { in ldiv()
56 r.quot++; in ldiv()
57 r.rem -= denom; in ldiv()
59 return (r); in ldiv()
Dlldiv.c55 lldiv_t r; in __weak_alias() local
59 r.quot = num / denom; in __weak_alias()
60 r.rem = num % denom; in __weak_alias()
61 if (num >= 0 && r.rem < 0) { in __weak_alias()
62 r.quot++; in __weak_alias()
63 r.rem -= denom; in __weak_alias()
65 return (r); in __weak_alias()
/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_cbrt.c44 double r,s,t=0.0,w; in cbrt() local
88 r=(t*t)*(t/x); in cbrt()
89 t=t*((P0+r*(P1+r*P2))+((r*r)*r)*(P3+r*P4)); in cbrt()
107 r=x/s; /* error <= 0.5 ulps; |r| < |t| */ in cbrt()
109 r=(r-t)/(w+r); /* r-t is exact; w+r ~= 3*t */ in cbrt()
110 t=t+t*r; /* error <= 0.5 + 0.5/3 + epsilon */ in cbrt()
Ds_cbrtf.c33 double r,T; in cbrtf() local
61 r=T*T*T; in cbrtf()
62 T=T*((double)x+x+r)/(x+r+r); in cbrtf()
68 r=T*T*T; in cbrtf()
69 T=T*((double)x+x+r)/(x+r+r); in cbrtf()
Dk_tanf.c41 double z,r,w,s,t,u; in __kernel_tandf() local
58 r = T[4]+z*T[5]; in __kernel_tandf()
63 r = (x+s*u)+(s*w)*(t+w*r); in __kernel_tandf()
64 if(iy==1) return r; in __kernel_tandf()
65 else return -1.0/r; in __kernel_tandf()
De_sqrt.c100 u_int32_t r,t1,s1,ix1,q1; in __ieee754_sqrt() local
139 r = 0x00200000; /* r = moving bit from right to left */ in __ieee754_sqrt()
141 while(r!=0) { in __ieee754_sqrt()
142 t = s0+r; in __ieee754_sqrt()
144 s0 = t+r; in __ieee754_sqrt()
146 q += r; in __ieee754_sqrt()
150 r>>=1; in __ieee754_sqrt()
153 r = sign; in __ieee754_sqrt()
154 while(r!=0) { in __ieee754_sqrt()
155 t1 = s1+r; in __ieee754_sqrt()
[all …]
De_sqrtf.c31 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()
Dk_tan.c80 double z, r, v, w, s; in __kernel_tan() local
102 r = T[1] + w * (T[3] + w * (T[5] + w * (T[7] + w * (T[9] + in __kernel_tan()
107 r = y + z * (s * (r + v) + y); in __kernel_tan()
108 r += T[0] * s; in __kernel_tan()
109 w = x + r; in __kernel_tan()
113 (v - 2.0 * (x - (w * w / (w + v) - r))); in __kernel_tan()
126 v = r - (z - x); /* z+v = r+x */ in __kernel_tan()
Dk_sin.c62 double z,r,v,w; in __kernel_sin() local
66 r = S2+z*(S3+z*S4) + z*w*(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()
De_acosl.c47 long double z,p,q,r,w,s,c,df; in acosl() local
64 r = p/q; in acosl()
65 return pio2_hi - (x - (pio2_lo-x*r)); in acosl()
71 r = p/q; in acosl()
72 w = r*s-pio2_lo; in acosl()
83 r = p/q; in acosl()
84 w = r*s+c; in acosl()
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dregerror.c168 const struct rerr *r; in regerror() local
180 for (r = rerrs; r->code != 0; r++) in regerror()
181 if (r->code == target) in regerror()
185 if (r->code != 0) { in regerror()
186 (void)strlcpy(convbuf, r->name, sizeof convbuf); in regerror()
192 s = r->explain; in regerror()
213 const struct rerr *r; in regatoi() local
215 for (r = rerrs; r->code != 0; r++) in regatoi()
216 if (strcmp(r->name, preg->re_endp) == 0) in regatoi()
218 if (r->code == 0) in regatoi()
[all …]
/bionic/libc/bionic/
Dwchar.cpp71 size_t i, o, r; in mbsnrtowcs() local
83 for (i = o = 0; i < nmc; i += r, o++) { in mbsnrtowcs()
90 r = 1; in mbsnrtowcs()
92 r = mbrtowc(NULL, *src + i, nmc - i, state); in mbsnrtowcs()
93 if (r == __MB_ERR_ILLEGAL_SEQUENCE) { in mbsnrtowcs()
96 if (r == __MB_ERR_INCOMPLETE_SEQUENCE) { in mbsnrtowcs()
99 if (r == 0) { in mbsnrtowcs()
117 for (i = o = 0; i < nmc && o < len; i += r, o++) { in mbsnrtowcs()
121 r = 1; in mbsnrtowcs()
127 r = mbrtowc(dst + o, *src + i, nmc - i, state); in mbsnrtowcs()
[all …]
/bionic/libm/upstream-freebsd/lib/msun/ld128/
De_rem_pio2l.h65 long double z,w,t,r,fn; in __ieee754_rem_pio2l() local
85 r = x-fn*pio2_1; in __ieee754_rem_pio2l()
91 y[0] = r-w; in __ieee754_rem_pio2l()
96 t = r; 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()
105 t = r; /* will cover all possible cases */ 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/crypt/
Darc4random_uniform.c35 uint32_t r, min; in arc4random_uniform() local
50 r = arc4random(); in arc4random_uniform()
51 if (r >= min) in arc4random_uniform()
55 return r % upper_bound; in arc4random_uniform()
/bionic/libm/upstream-freebsd/lib/msun/bsdsrc/
Db_tgamma.c189 struct Double yy, r; local
196 r.a = y;
197 TRUNC(r.a);
198 yy.a = r.a - one;
200 yy.b = r.b = y - yy.a;
203 t = r.a*yy.a;
204 r.b = r.a*yy.b + y*r.b;
205 r.a = t;
206 TRUNC(r.a);
207 r.b += (t - r.a);
[all …]
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Dtsearch.c35 int r; in tsearch() local
37 if ((r = (*compar)(key, (*rootp)->key)) == 0) /* T2: */ in tsearch()
39 rootp = (r < 0) ? in tsearch()
61 node *r; in tdelete() local
74 r = (*rootp)->right; /* D1: */ in tdelete()
76 q = r; in tdelete()
77 else if (r != (struct node_t *)0) { /* Right link is null? */ in tdelete()
78 if (r->left == (struct node_t *)0) { /* D2: Find successor */ in tdelete()
79 r->left = q; in tdelete()
80 q = r; in tdelete()
[all …]
/bionic/libc/stdio/
Dfread.c47 int r; in fread() local
78 while (resid > 0 && (r = (*fp->_read)(fp->_cookie, p, resid)) > 0) { in fread()
79 p += r; in fread()
80 resid -= r; in fread()
87 while (resid > (size_t)(r = fp->_r)) { in fread()
88 (void)memcpy((void *)p, (void *)fp->_p, (size_t)r); in fread()
89 fp->_p += r; in fread()
91 p += r; in fread()
92 resid -= r; in fread()
/bionic/tests/
Dsys_select_test.cpp75 fd_set r; in TEST() local
76 FD_ZERO(&r); in TEST()
82 FD_SET(STDIN_FILENO, &r); 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()
106 FD_ZERO(&r); in TEST()
107 FD_SET(fd, &r); in TEST()
108 ASSERT_EQ(1, select(fd+1, &r, NULL, NULL, &tv)); in TEST()
121 fd_set r; in TEST() local
[all …]
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dfflush.c42 int r; in fflush() local
49 r = EOF; in fflush()
51 r = __sflush(fp); in fflush()
53 return (r); in fflush()
91 int r; in __sflush_locked() local
94 r = __sflush(fp); in __sflush_locked()
96 return (r); in __sflush_locked()
Dwscanf.c37 int r; in wscanf() local
40 r = vfwscanf(stdin, fmt, ap); in wscanf()
43 return (r); in wscanf()
Dswscanf.c37 int r; in swscanf() local
40 r = vswscanf(str, fmt, ap); in swscanf()
43 return (r); in swscanf()
Dfwscanf.c37 int r; in fwscanf() local
40 r = vfwscanf(fp, fmt, ap); in fwscanf()
43 return (r); in fwscanf()
/bionic/libc/upstream-freebsd/lib/libc/string/
Dwcsncat.c44 const wchar_t *r; in wcsncat() local
50 r = s2; in wcsncat()
51 while (*r && n) { in wcsncat()
52 *q++ = *r++; in wcsncat()
/bionic/libc/upstream-openbsd/lib/libc/string/
Dwcsstr.c43 const wchar_t *r; in wcswcs() local
56 r = p; in wcswcs()
58 if (*r != *q) in wcswcs()
61 r++; in wcswcs()

1234