Home
last modified time | relevance | path

Searched refs:t (Results 1 – 25 of 176) sorted by relevance

12345678

/bionic/tests/
Dtermios_test.cpp45 termios t = {}; in TEST() local
46 ASSERT_EQ(0, cfsetispeed(&t, B1200)); in TEST()
47 ASSERT_EQ(static_cast<speed_t>(B1200), cfgetispeed(&t)); in TEST()
51 termios t = {}; in TEST() local
53 ASSERT_EQ(-1, cfsetispeed(&t, 1200)); in TEST()
58 termios t = {}; in TEST() local
59 ASSERT_EQ(0, cfsetospeed(&t, B1200)); in TEST()
60 ASSERT_EQ(static_cast<speed_t>(B1200), cfgetospeed(&t)); in TEST()
64 termios t = {}; in TEST() local
66 ASSERT_EQ(-1, cfsetospeed(&t, 1200)); in TEST()
[all …]
Dtime_test.cpp63 time_t t = 0; in TEST() local
64 tm* broken_down = gmtime(&t); in TEST()
76 time_t t = 0; in TEST() local
77 struct tm* broken_down = gmtime_r(&t, &tm); in TEST()
117 pthread_t t; in TEST() local
118 ASSERT_EQ(0, pthread_create(&t, &a, gmtime_no_stack_overflow_14313703_fn, nullptr)); in TEST()
119 ASSERT_EQ(0, pthread_join(t, nullptr)); in TEST()
126 struct tm t; in TEST() local
127 memset(&t, 0, sizeof(tm)); in TEST()
128 t.tm_year = 1980 - 1900; in TEST()
[all …]
/bionic/libm/upstream-freebsd/lib/msun/src/
De_asin.c73 double t=0.0,w,p,q,c,r,s; in __ieee754_asin() local
88 t = x*x; in __ieee754_asin()
89 p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5))))); in __ieee754_asin()
90 q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4))); in __ieee754_asin()
96 t = w*0.5; in __ieee754_asin()
97 p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5))))); in __ieee754_asin()
98 q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4))); in __ieee754_asin()
99 s = sqrt(t); in __ieee754_asin()
102 t = pio2_hi-(2.0*(s+s*w)-pio2_lo); in __ieee754_asin()
106 c = (t-w*w)/(s+w); in __ieee754_asin()
[all …]
Ds_cbrt.c45 double r,s,t=0.0,w; in cbrt() local
72 SET_HIGH_WORD(t,0x43500000); /* set t= 2**54 */ in cbrt()
73 t*=x; in cbrt()
74 GET_HIGH_WORD(high,t); in cbrt()
75 INSERT_WORDS(t,sign|((high&0x7fffffff)/3+B2),0); in cbrt()
77 INSERT_WORDS(t,sign|(hx/3+B1),0); in cbrt()
89 r=(t*t)*(t/x); in cbrt()
90 t=t*((P0+r*(P1+r*P2))+((r*r)*r)*(P3+r*P4)); in cbrt()
102 u.value=t; in cbrt()
104 t=u.value; in cbrt()
[all …]
De_asinf.c38 float t,w,p,q; in __ieee754_asinf() local
50 t = x*x; in __ieee754_asinf()
51 p = t*(pS0+t*(pS1+t*pS2)); in __ieee754_asinf()
52 q = one+t*qS1; in __ieee754_asinf()
58 t = w*(float)0.5; in __ieee754_asinf()
59 p = t*(pS0+t*(pS1+t*pS2)); in __ieee754_asinf()
60 q = one+t*qS1; in __ieee754_asinf()
61 s = sqrt(t); in __ieee754_asinf()
63 t = pio2-2.0*(s+s*w); in __ieee754_asinf()
64 if(hx>0) return t; else return -t; in __ieee754_asinf()
Ds_csqrtf.c40 double t; in csqrtf() local
52 t = (b - b) / (b - b); /* raise invalid if b is not a NaN */ in csqrtf()
53 return (CMPLXF(a + 0.0L + t, a + 0.0L + t)); /* NaN + NaN i */ in csqrtf()
68 t = (a - a) / (a - a); /* raise invalid */ in csqrtf()
69 return (CMPLXF(b + 0.0L + t, b + 0.0L + t)); /* NaN + NaN i */ in csqrtf()
78 t = sqrt((a + hypot(a, b)) * 0.5); in csqrtf()
79 return (CMPLXF(t, b / (2 * t))); in csqrtf()
81 t = sqrt((-a + hypot(a, b)) * 0.5); in csqrtf()
82 return (CMPLXF(fabsf(b) / (2 * t), copysignf(t, b))); in csqrtf()
Ds_roundf.c38 float t; in roundf() local
46 t = floorf(x); in roundf()
47 if (t - x <= -0.5F) in roundf()
48 t += 1; in roundf()
49 return (t); in roundf()
51 t = floorf(-x); in roundf()
52 if (t + x <= -0.5F) in roundf()
53 t += 1; in roundf()
54 return (-t); in roundf()
Ds_roundl.c44 long double t; in roundl() local
54 t = floorl(x); in roundl()
55 if (t - x <= -0.5L) in roundl()
56 t += 1; in roundl()
57 RETURNI(t); in roundl()
59 t = floorl(-x); in roundl()
60 if (t + x <= -0.5L) in roundl()
61 t += 1; in roundl()
62 RETURNI(-t); in roundl()
Ds_round.c40 double t; in round() local
48 t = floor(x); in round()
49 if (t - x <= -0.5) in round()
50 t += 1; in round()
51 return (t); in round()
53 t = floor(-x); in round()
54 if (t + x <= -0.5) in round()
55 t += 1; in round()
56 return (-t); in round()
Ds_csqrtl.c60 long double a, b, rx, ry, scale, t; in csqrtl() local
71 t = (b - b) / (b - b); /* raise invalid if b is not a NaN */ in csqrtl()
72 return (CMPLXL(a + 0.0L + t, a + 0.0L + t)); /* NaN + NaN i */ in csqrtl()
87 t = (a - a) / (a - a); /* raise invalid */ in csqrtl()
88 return (CMPLXL(b + 0.0L + t, b + 0.0L + t)); /* NaN + NaN i */ in csqrtl()
116 t = sqrtl((a + hypotl(a, b)) * 0.5); in csqrtl()
117 rx = scale * t; in csqrtl()
118 ry = scale * b / (2 * t); in csqrtl()
120 t = sqrtl((-a + hypotl(a, b)) * 0.5); in csqrtl()
121 rx = scale * fabsl(b) / (2 * t); in csqrtl()
[all …]
Ds_csqrt.c45 double a, b, rx, ry, scale, t; in csqrt() local
56 t = (b - b) / (b - b); /* raise invalid if b is not a NaN */ in csqrt()
57 return (CMPLX(a + 0.0L + t, a + 0.0L + t)); /* NaN + NaN i */ in csqrt()
72 t = (a - a) / (a - a); /* raise invalid */ in csqrt()
73 return (CMPLX(b + 0.0L + t, b + 0.0L + t)); /* NaN + NaN i */ in csqrt()
101 t = sqrt((a + hypot(a, b)) * 0.5); in csqrt()
102 rx = scale * t; in csqrt()
103 ry = scale * b / (2 * t); in csqrt()
105 t = sqrt((-a + hypot(a, b)) * 0.5); in csqrt()
106 rx = scale * fabs(b) / (2 * t); in csqrt()
[all …]
De_asinl.c37 long double t=0.0,w,p,q,c,r,s; in asinl() local
51 t = x*x; in asinl()
52 p = P(t); in asinl()
53 q = Q(t); in asinl()
59 t = w*0.5; in asinl()
60 p = P(t); in asinl()
61 q = Q(t); in asinl()
62 s = sqrtl(t); in asinl()
65 t = pio2_hi-(2.0*(s+s*w)-pio2_lo); in asinl()
70 c = (t-w*w)/(s+w); in asinl()
[all …]
Ds_expm1f.c44 float y,hi,lo,c,t,e,hxs,hfx,r1,twopk; in expm1f() local
76 t = k; in expm1f()
77 hi = x - t*ln2_hi; /* t*ln2_hi is exact here */ in expm1f()
78 lo = t*ln2_lo; in expm1f()
84 t = huge+x; /* return x with inexact flags when x!=0 */ in expm1f()
85 return x - (t-(huge+x)); in expm1f()
93 t = (float)3.0-r1*hfx; in expm1f()
94 e = hxs*((r1-t)/((float)6.0 - x*t)); in expm1f()
111 t = one; in expm1f()
113 SET_FLOAT_WORD(t,0x3f800000 - (0x1000000>>k)); /* t=1-2^-k */ in expm1f()
[all …]
Ds_cbrtl.c38 long double r, s, t, w; in cbrtl() local
116 t = dt + vd - 0x1.0p32; in cbrtl()
126 t = dt + 0x2.0p-46 + 0x1.0p60L - 0x1.0p60; in cbrtl()
135 s=t*t; /* t*t is exact */ in cbrtl()
137 w=t+t; /* t+t is exact */ in cbrtl()
138 r=(r-t)/(w+r); /* r-t is exact; w+r ~= 3*t */ in cbrtl()
139 t=t+t*r; /* error <= 0.5 + 0.5/3 + epsilon */ in cbrtl()
141 t *= v.e; in cbrtl()
142 RETURNI(t); in cbrtl()
De_sinhf.c27 float t,h; in __ieee754_sinhf() local
42 t = expm1f(fabsf(x)); in __ieee754_sinhf()
43 if(ix<0x3f800000) return h*((float)2.0*t-t*t/(t+one)); in __ieee754_sinhf()
44 return h*(t+t/(t+one)); in __ieee754_sinhf()
De_sinh.c45 double t,h; in __ieee754_sinh() local
61 t = expm1(fabs(x)); in __ieee754_sinh()
62 if(ix<0x3ff00000) return h*(2.0*t-t*t/(t+one)); in __ieee754_sinh()
63 return h*(t+t/(t+one)); in __ieee754_sinh()
De_powf.c62 float y1,t1,t2,r,s,sn,t,u,v,w; in __ieee754_powf() local
143 t = ax-1; /* t has 20 trailing zeros */ in __ieee754_powf()
144 w = (t*t)*(half-t*(thrd-t*qrtr)); in __ieee754_powf()
145 u = ivln2_h*t; /* ivln2_h has 16 sig. bits */ in __ieee754_powf()
146 v = t*ivln2_l-w*ivln2; in __ieee754_powf()
198 t = n; in __ieee754_powf()
199 t1 = (((z_h+z_l)+dp_h[k])+t); in __ieee754_powf()
202 t2 = z_l-(((t1-t)-dp_h[k])-z_h); in __ieee754_powf()
231 SET_FLOAT_WORD(t,n&~(0x007fffff>>k)); in __ieee754_powf()
234 p_h -= t; in __ieee754_powf()
[all …]
/bionic/benchmarks/
Dtime_benchmark.cpp42 timespec t; in BM_time_clock_gettime() local
44 clock_gettime(CLOCK_MONOTONIC, &t); in BM_time_clock_gettime()
51 timespec t; in BM_time_clock_gettime_syscall() local
53 syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &t); in BM_time_clock_gettime_syscall()
60 timespec t; in BM_time_clock_gettime_MONOTONIC_COARSE() local
62 clock_gettime(CLOCK_MONOTONIC_COARSE, &t); in BM_time_clock_gettime_MONOTONIC_COARSE()
69 timespec t; in BM_time_clock_gettime_MONOTONIC_RAW() local
71 clock_gettime(CLOCK_MONOTONIC_RAW, &t); in BM_time_clock_gettime_MONOTONIC_RAW()
78 timespec t; in BM_time_clock_gettime_REALTIME() local
80 clock_gettime(CLOCK_REALTIME, &t); in BM_time_clock_gettime_REALTIME()
[all …]
/bionic/libc/tzcode/
Dstrftime.c136 strftime_l(char *s, size_t maxsize, char const *format, struct tm const *t, in strftime_l() argument
140 return strftime(s, maxsize, format, t); in strftime_l()
147 strftime(char *s, size_t maxsize, const char *format, const struct tm *t) in strftime() argument
154 p = _fmt(format, t, s, s + maxsize, &warn); in strftime()
217 _fmt(const char *format, const struct tm *t, char *pt, in _fmt() argument
229 pt = _add((t->tm_wday < 0 || in _fmt()
230 t->tm_wday >= DAYSPERWEEK) ? in _fmt()
231 "?" : Locale->weekday[t->tm_wday], in _fmt()
235 pt = _add((t->tm_wday < 0 || in _fmt()
236 t->tm_wday >= DAYSPERWEEK) ? in _fmt()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/time/
Dwcsftime.c120 const wchar_t *__restrict format, const struct tm *__restrict t) in wcsftime() argument
127 p = _fmt(((format == NULL) ? L"%c" : format), t, s, s + maxsize, &warn); in wcsftime()
138 _fmt(const wchar_t *format, const struct tm *t, wchar_t *pt, in _fmt() argument
154 pt = _add((t->tm_wday < 0 || in _fmt()
155 t->tm_wday >= DAYSPERWEEK) ? in _fmt()
156 UNKNOWN : Locale->weekday[t->tm_wday], in _fmt()
160 pt = _add((t->tm_wday < 0 || in _fmt()
161 t->tm_wday >= DAYSPERWEEK) ? in _fmt()
162 UNKNOWN : Locale->wday[t->tm_wday], in _fmt()
166 pt = _add((t->tm_mon < 0 || in _fmt()
[all …]
/bionic/libm/upstream-netbsd/lib/libm/complex/
Dcephes_subrl.c72 long double t; in _redupil() local
75 t = x / M_PIL; in _redupil()
76 if (t >= 0.0L) in _redupil()
77 t += 0.5L; in _redupil()
79 t -= 0.5L; in _redupil()
81 i = t; /* the multiple */ in _redupil()
82 t = i; in _redupil()
83 t = ((x - t * DP1) - t * DP2) - t * DP3; in _redupil()
84 return t; in _redupil()
92 long double f, x, x2, y, y2, rn, t; in _ctansl() local
[all …]
/bionic/libc/upstream-freebsd/lib/libc/string/
Dbcopy.c72 size_t t; in memcpy() local
80 #define TLOOP(s) if (t) TLOOP1(s) in memcpy()
81 #define TLOOP1(s) do { s; } while (--t) in memcpy()
87 t = (uintptr_t)src; /* only need low bits */ in memcpy()
88 if ((t | (uintptr_t)dst) & wmask) { in memcpy()
93 if ((t ^ (uintptr_t)dst) & wmask || length < wsize) in memcpy()
94 t = length; in memcpy()
96 t = wsize - (t & wmask); in memcpy()
97 length -= t; in memcpy()
103 t = length / wsize; in memcpy()
[all …]
Dmemset.c68 size_t t; in bzero() local
111 if ((t = (long)dst & wmask) != 0) { in bzero()
112 t = wsize - t; in bzero()
113 length -= t; in bzero()
116 } while (--t != 0); in bzero()
120 t = length / wsize; in bzero()
124 } while (--t != 0); in bzero()
127 t = length & wmask; in bzero()
128 if (t != 0) in bzero()
131 } while (--t != 0); in bzero()
/bionic/libm/upstream-freebsd/lib/msun/ld128/
Ds_expl.c64 long double hi, lo, t, twopk; in expl() local
92 t = SUM2P(hi, lo); in expl()
101 RETURNI(t * 2 * 0x1p16383L); in expl()
103 RETURNI(t * twopk); in expl()
106 RETURNI(t * twopk * twom10000); in expl()
207 long double hx2_hi, hx2_lo, q, r, r1, t, twomk, twopk, x_hi; in expm1l() local
295 t = tbl[n2].lo + tbl[n2].hi; in expm1l()
298 t = SUM2P(tbl[n2].hi - 1, tbl[n2].lo * (r1 + 1) + t * q + in expm1l()
300 RETURNI(t); in expm1l()
303 t = SUM2P(tbl[n2].hi - 2, tbl[n2].lo * (r1 + 1) + t * q + in expm1l()
[all …]
/bionic/libc/dns/resolv/
Dherror.c100 char *t; in herror() local
103 DE_CONST(s, t); in herror()
104 v->iov_base = t; in herror()
105 v->iov_len = strlen(t); in herror()
107 DE_CONST(": ", t); in herror()
108 v->iov_base = t; in herror()
112 DE_CONST(hstrerror(h_errno), t); in herror()
113 v->iov_base = t; in herror()
116 DE_CONST("\n", t); in herror()
117 v->iov_base = t; in herror()

12345678