/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | e_asin.c | 73 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 …]
|
D | s_cbrt.c | 44 double r,s,t=0.0,w; in cbrt() local 71 SET_HIGH_WORD(t,0x43500000); /* set t= 2**54 */ in cbrt() 72 t*=x; in cbrt() 73 GET_HIGH_WORD(high,t); in cbrt() 74 INSERT_WORDS(t,sign|((high&0x7fffffff)/3+B2),0); in cbrt() 76 INSERT_WORDS(t,sign|(hx/3+B1),0); in cbrt() 88 r=(t*t)*(t/x); in cbrt() 89 t=t*((P0+r*(P1+r*P2))+((r*r)*r)*(P3+r*P4)); in cbrt() 101 u.value=t; in cbrt() 103 t=u.value; in cbrt() [all …]
|
D | s_roundf.c | 36 float t; in roundf() local 44 t = floorf(x); in roundf() 45 if (t - x <= -0.5F) in roundf() 46 t += 1; in roundf() 47 return (t); in roundf() 49 t = floorf(-x); in roundf() 50 if (t + x <= -0.5F) in roundf() 51 t += 1; in roundf() 52 return (-t); in roundf()
|
D | s_round.c | 38 double t; in round() local 46 t = floor(x); in round() 47 if (t - x <= -0.5) in round() 48 t += 1; in round() 49 return (t); in round() 51 t = floor(-x); in round() 52 if (t + x <= -0.5) in round() 53 t += 1; in round() 54 return (-t); in round()
|
D | s_roundl.c | 42 long double t; in roundl() local 52 t = floorl(x); in roundl() 53 if (t - x <= -0.5L) in roundl() 54 t += 1; in roundl() 55 RETURNI(t); in roundl() 57 t = floorl(-x); in roundl() 58 if (t + x <= -0.5L) in roundl() 59 t += 1; in roundl() 60 RETURNI(-t); in roundl()
|
D | e_asinf.c | 38 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()
|
D | e_sinhf.c | 27 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()
|
D | e_acoshf.c | 29 float t; in __ieee754_acoshf() local 42 t=x*x; in __ieee754_acoshf() 43 return __ieee754_logf((float)2.0*x-one/(x+__ieee754_sqrtf(t-one))); in __ieee754_acoshf() 45 t = x-one; in __ieee754_acoshf() 46 return log1pf(t+__ieee754_sqrtf((float)2.0*t+t*t)); in __ieee754_acoshf()
|
D | e_sinh.c | 45 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()
|
D | e_atanhf.c | 29 float t; in __ieee754_atanhf() local 40 t = x+x; in __ieee754_atanhf() 41 t = (float)0.5*log1pf(t+t*x/(one-x)); in __ieee754_atanhf() 43 t = (float)0.5*log1pf((x+x)/(one-x)); in __ieee754_atanhf() 44 if(hx>=0) return t; else return -t; in __ieee754_atanhf()
|
D | e_coshf.c | 27 float t,w; in __ieee754_coshf() local 38 t = expm1f(fabsf(x)); in __ieee754_coshf() 39 w = one+t; in __ieee754_coshf() 41 return one+(t*t)/(w+w); in __ieee754_coshf() 46 t = __ieee754_expf(fabsf(x)); in __ieee754_coshf() 47 return half*t+half/t; in __ieee754_coshf()
|
D | e_acosh.c | 44 double t; in __ieee754_acosh() local 58 t=x*x; in __ieee754_acosh() 59 return __ieee754_log(2.0*x-one/(x+sqrt(t-one))); in __ieee754_acosh() 61 t = x-one; in __ieee754_acosh() 62 return log1p(t+sqrt(2.0*t+t*t)); in __ieee754_acosh()
|
D | e_cosh.c | 48 double t,w; in __ieee754_cosh() local 60 t = expm1(fabs(x)); in __ieee754_cosh() 61 w = one+t; in __ieee754_cosh() 63 return one+(t*t)/(w+w); in __ieee754_cosh() 68 t = __ieee754_exp(fabs(x)); in __ieee754_cosh() 69 return half*t+half/t; in __ieee754_cosh()
|
D | s_csqrtf.c | 48 double t; in csqrtf() local 56 t = (b - b) / (b - b); /* raise invalid if b is not a NaN */ in csqrtf() 57 return (CMPLXF(a, t)); /* return NaN + NaN i */ in csqrtf() 82 t = sqrt((a + hypot(a, b)) * 0.5); in csqrtf() 83 return (CMPLXF(t, b / (2.0 * t))); in csqrtf() 85 t = sqrt((-a + hypot(a, b)) * 0.5); in csqrtf() 86 return (CMPLXF(fabsf(b) / (2.0 * t), copysignf(t, b))); in csqrtf()
|
D | e_asinl.c | 37 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 …]
|
D | e_atanh.c | 47 double t; in __ieee754_atanh() local 59 t = x+x; in __ieee754_atanh() 60 t = 0.5*log1p(t+t*x/(one-x)); in __ieee754_atanh() 62 t = 0.5*log1p((x+x)/(one-x)); in __ieee754_atanh() 63 if(hx>=0) return t; else return -t; in __ieee754_atanh()
|
/bionic/libc/upstream-openbsd/lib/libc/string/ |
D | memmove.c | 53 size_t t; in memmove() local 61 #define TLOOP(s) if (t) TLOOP1(s) in memmove() 62 #define TLOOP1(s) do { s; } while (--t) in memmove() 68 t = (long)src; /* only need low bits */ in memmove() 69 if ((t | (long)dst) & wmask) { in memmove() 74 if ((t ^ (long)dst) & wmask || length < wsize) in memmove() 75 t = length; in memmove() 77 t = wsize - (t & wmask); in memmove() 78 length -= t; in memmove() 84 t = length / wsize; in memmove() [all …]
|
/bionic/libm/upstream-netbsd/lib/libm/complex/ |
D | cephes_subrl.c | 72 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 …]
|
D | catanl.c | 48 long double a, t, x, x2, y; in __weak_alias() local 61 t = 0.5L * atan2l(2.0L * x, a); in __weak_alias() 62 w = _redupil(t); in __weak_alias() 64 t = y - 1.0L; in __weak_alias() 65 a = x2 + (t * t); in __weak_alias() 69 t = y + 1.0L; in __weak_alias() 70 a = (x2 + (t * t))/a; in __weak_alias()
|
/bionic/libc/tzcode/ |
D | strftime.c | 138 strftime_l(char *s, size_t maxsize, char const *format, struct tm const *t, in strftime_l() argument 142 return strftime(s, maxsize, format, t); in strftime_l() 149 strftime(char *s, size_t maxsize, const char *format, const struct tm *t) in strftime() argument 156 p = _fmt(((format == NULL) ? "%c" : format), t, s, s + maxsize, &warn); in strftime() 193 _fmt(const char *format, const struct tm *t, char *pt, in _fmt() argument 205 pt = _add((t->tm_wday < 0 || in _fmt() 206 t->tm_wday >= DAYSPERWEEK) ? in _fmt() 207 "?" : Locale->weekday[t->tm_wday], in _fmt() 211 pt = _add((t->tm_wday < 0 || in _fmt() 212 t->tm_wday >= DAYSPERWEEK) ? in _fmt() [all …]
|
/bionic/tests/ |
D | sys_timex_test.cpp | 24 timex t; in TEST() local 25 memset(&t, 0, sizeof(t)); in TEST() 27 ASSERT_NE(-1, adjtimex(&t)); in TEST() 37 timex t; in TEST() local 38 memset(&t, 0, sizeof(t)); in TEST() 40 ASSERT_NE(-1, clock_adjtime(CLOCK_REALTIME, &t)); in TEST()
|
D | time_test.cpp | 35 time_t t = 0; in TEST() local 36 tm* broken_down = gmtime(&t); in TEST() 66 pthread_t t; in TEST() local 67 ASSERT_EQ(0, pthread_create(&t, &a, gmtime_no_stack_overflow_14313703_fn, NULL)); in TEST() 68 ASSERT_EQ(0, pthread_join(t, nullptr)); in TEST() 75 struct tm t; in TEST() local 76 memset(&t, 0, sizeof(tm)); in TEST() 77 t.tm_year = 1980 - 1900; in TEST() 78 t.tm_mon = 6; in TEST() 79 t.tm_mday = 2; in TEST() [all …]
|
/bionic/libm/upstream-freebsd/lib/msun/bsdsrc/ |
D | b_tgamma.c | 160 struct Double t, u, v; local 171 t.a = v.a*u.a; /* t = (x-.5)*(log(x)-1) */ 172 t.b = v.b*u.a + x*u.b; 174 t.b += lns2pi_lo; t.b += p; 175 u.a = lns2pi_hi + t.b; u.a += t.a; 176 u.b = t.a - u.a; 177 u.b += lns2pi_hi; u.b += t.b; 188 double y, ym1, t; local 203 t = r.a*yy.a; 205 r.a = t; [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/time/ |
D | wcsftime.c | 120 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/libc/dns/resolv/ |
D | herror.c | 100 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()
|