/bionic/libc/unistd/ |
D | socketcalls.c | 56 unsigned long t[3]; in socket() local 58 t[0] = (unsigned long) domain; in socket() 59 t[1] = (unsigned long) type; in socket() 60 t[2] = (unsigned long) protocol; in socket() 62 return (int) __socketcall( SYS_SOCKET, t ); in socket() 70 unsigned long t[3]; in bind() local 72 t[0] = (unsigned long) sockfd; in bind() 73 t[1] = (unsigned long) my_addr; in bind() 74 t[2] = (unsigned long) addrlen; in bind() 76 return (int) __socketcall( SYS_BIND, t ); in bind() [all …]
|
D | sleep.c | 33 struct timespec t; in sleep() local 42 t.tv_sec = seconds; in sleep() 43 t.tv_nsec = 0; in sleep() 45 if ( !nanosleep( &t, &t ) ) in sleep() 49 return t.tv_sec; in sleep()
|
/bionic/libm/src/ |
D | s_cbrtf.c | 41 float r,s,t,w; in cbrtf() local 55 SET_FLOAT_WORD(t,0x4b800000); /* set t= 2**24 */ in cbrtf() 56 t*=x; in cbrtf() 57 GET_FLOAT_WORD(high,t); in cbrtf() 58 SET_FLOAT_WORD(t,sign|((high&0x7fffffff)/3+B2)); in cbrtf() 60 SET_FLOAT_WORD(t,sign|(hx/3+B1)); in cbrtf() 63 r=t*t/x; in cbrtf() 64 s=C+r*t; in cbrtf() 65 t*=G+F/(s+E+D/s); in cbrtf() 68 GET_FLOAT_WORD(high,t); in cbrtf() [all …]
|
D | s_cbrt.c | 40 double r,s,t=0.0,w; in cbrt() local 68 SET_HIGH_WORD(t,0x43500000); /* set t= 2**54 */ in cbrt() 69 t*=x; in cbrt() 70 GET_HIGH_WORD(high,t); in cbrt() 71 SET_HIGH_WORD(t,sign|((high&0x7fffffff)/3+B2)); in cbrt() 73 SET_HIGH_WORD(t,sign|(hx/3+B1)); in cbrt() 76 r=t*t/x; in cbrt() 77 s=C+r*t; in cbrt() 78 t*=G+F/(s+E+D/s); in cbrt() 81 GET_HIGH_WORD(high,t); in cbrt() [all …]
|
D | s_roundf.c | 35 float t; in roundf() local 41 t = floorf(x); in roundf() 42 if (t - x <= -0.5) in roundf() 43 t += 1.0; in roundf() 44 return (t); in roundf() 46 t = floorf(-x); in roundf() 47 if (t + x <= -0.5) in roundf() 48 t += 1.0; in roundf() 49 return (-t); in roundf()
|
D | s_round.c | 35 double t; in round() local 41 t = floor(x); in round() 42 if (t - x <= -0.5) in round() 43 t += 1.0; in round() 44 return (t); in round() 46 t = floor(-x); in round() 47 if (t + x <= -0.5) in round() 48 t += 1.0; in round() 49 return (-t); in round()
|
D | s_roundl.c | 35 long double t; in roundl() local 41 t = floorl(x); in roundl() 42 if (t - x <= -0.5) in roundl() 43 t += 1.0; in roundl() 44 return (t); in roundl() 46 t = floorl(-x); in roundl() 47 if (t + x <= -0.5) in roundl() 48 t += 1.0; in roundl() 49 return (-t); in roundl()
|
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 | e_asinf.c | 44 float t=0.0,w,p,q,c,r,s; in __ieee754_asinf() local 57 t = x*x; in __ieee754_asinf() 58 p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5))))); in __ieee754_asinf() 59 q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4))); in __ieee754_asinf() 65 t = w*(float)0.5; in __ieee754_asinf() 66 p = t*(pS0+t*(pS1+t*(pS2+t*(pS3+t*(pS4+t*pS5))))); in __ieee754_asinf() 67 q = one+t*(qS1+t*(qS2+t*(qS3+t*qS4))); in __ieee754_asinf() 68 s = __ieee754_sqrtf(t); in __ieee754_asinf() 71 t = pio2_hi-((float)2.0*(s+s*w)-pio2_lo); in __ieee754_asinf() 77 c = (t-w*w)/(s+w); in __ieee754_asinf() [all …]
|
D | e_sinhf.c | 28 float t,w,h; in __ieee754_sinhf() local 43 t = expm1f(fabsf(x)); in __ieee754_sinhf() 44 if(ix<0x3f800000) return h*((float)2.0*t-t*t/(t+one)); in __ieee754_sinhf() 45 return h*(t+t/(t+one)); in __ieee754_sinhf() 54 t = h*w; in __ieee754_sinhf() 55 return t*w; in __ieee754_sinhf()
|
D | e_sinh.c | 44 double t,w,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() 73 t = h*w; in __ieee754_sinh() 74 return t*w; in __ieee754_sinh()
|
D | e_coshf.c | 28 float t,w; in __ieee754_coshf() local 39 t = expm1f(fabsf(x)); in __ieee754_coshf() 40 w = one+t; in __ieee754_coshf() 42 return one+(t*t)/(w+w); in __ieee754_coshf() 47 t = __ieee754_expf(fabsf(x)); in __ieee754_coshf() 48 return half*t+half/t; in __ieee754_coshf() 57 t = half*w; in __ieee754_coshf() 58 return t*w; in __ieee754_coshf()
|
D | e_acoshf.c | 30 float t; in __ieee754_acoshf() local 43 t=x*x; in __ieee754_acoshf() 44 return __ieee754_logf((float)2.0*x-one/(x+__ieee754_sqrtf(t-one))); in __ieee754_acoshf() 46 t = x-one; in __ieee754_acoshf() 47 return log1pf(t+__ieee754_sqrtf((float)2.0*t+t*t)); in __ieee754_acoshf()
|
D | e_cosh.c | 47 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() 80 t = half*w; in __ieee754_cosh() 81 return t*w; in __ieee754_cosh()
|
D | e_acosh.c | 43 double t; in __ieee754_acosh() local 57 t=x*x; in __ieee754_acosh() 58 return __ieee754_log(2.0*x-one/(x+sqrt(t-one))); in __ieee754_acosh() 60 t = x-one; in __ieee754_acosh() 61 return log1p(t+sqrt(2.0*t+t*t)); in __ieee754_acosh()
|
D | e_atanhf.c | 30 float t; in __ieee754_atanhf() local 41 t = x+x; in __ieee754_atanhf() 42 t = (float)0.5*log1pf(t+t*x/(one-x)); in __ieee754_atanhf() 44 t = (float)0.5*log1pf((x+x)/(one-x)); in __ieee754_atanhf() 45 if(hx>=0) return t; else return -t; in __ieee754_atanhf()
|
D | e_atanh.c | 46 double t; in __ieee754_atanh() local 58 t = x+x; in __ieee754_atanh() 59 t = 0.5*log1p(t+t*x/(one-x)); in __ieee754_atanh() 61 t = 0.5*log1p((x+x)/(one-x)); in __ieee754_atanh() 62 if(hx>=0) return t; else return -t; in __ieee754_atanh()
|
D | s_asinh.c | 39 double t,w; in asinh() local 50 t = fabs(x); in asinh() 51 w = __ieee754_log(2.0*t+one/(__ieee754_sqrt(x*x+one)+t)); in asinh() 53 t = x*x; in asinh() 54 w =log1p(fabs(x)+t/(one+__ieee754_sqrt(one+t))); in asinh()
|
/bionic/libc/string/ |
D | bcopy.c | 65 size_t t; in memcpy() local 73 #define TLOOP(s) if (t) TLOOP1(s) in memcpy() 74 #define TLOOP1(s) do { s; } while (--t) in memcpy() 80 t = (long)src; /* only need low bits */ in memcpy() 81 if ((t | (long)dst) & wmask) { in memcpy() 86 if ((t ^ (long)dst) & wmask || length < wsize) in memcpy() 87 t = length; in memcpy() 89 t = wsize - (t & wmask); in memcpy() 90 length -= t; in memcpy() 96 t = length / wsize; in memcpy() [all …]
|
/bionic/libc/kernel/common/linux/sunrpc/ |
D | sched.h | 107 #define RPC_IS_ASYNC(t) ((t)->tk_flags & RPC_TASK_ASYNC) argument 108 #define RPC_IS_CHILD(t) ((t)->tk_flags & RPC_TASK_CHILD) argument 109 #define RPC_IS_SWAPPER(t) ((t)->tk_flags & RPC_TASK_SWAPPER) argument 110 #define RPC_DO_ROOTOVERRIDE(t) ((t)->tk_flags & RPC_TASK_ROOTCREDS) argument 111 #define RPC_ASSASSINATED(t) ((t)->tk_flags & RPC_TASK_KILLED) argument 112 #define RPC_DO_CALLBACK(t) ((t)->tk_callback != NULL) argument 113 #define RPC_IS_SOFT(t) ((t)->tk_flags & RPC_TASK_SOFT) argument 114 #define RPC_TASK_UNINTERRUPTIBLE(t) ((t)->tk_flags & RPC_TASK_NOINTR) argument 122 #define RPC_IS_RUNNING(t) (test_bit(RPC_TASK_RUNNING, &(t)->tk_runstate)) argument 123 #define rpc_set_running(t) (set_bit(RPC_TASK_RUNNING, &(t)->tk_runstate)) argument [all …]
|
/bionic/libc/stdio/ |
D | flockfile.c | 93 lock_table_unlock( LockTable* t ) in lock_table_unlock() argument 95 pthread_mutex_unlock( &t->lock ); in lock_table_unlock() 99 lock_table_lookup( LockTable* t, FILE* f ) in lock_table_lookup() argument 105 pnode = &t->buckets[hash % FILE_LOCK_BUCKETS]; in lock_table_lookup() 118 LockTable* t = lock_table_lock(); in flockfile() local 120 if (t != NULL) { in flockfile() 121 FileLock** lookup = lock_table_lookup(t, fp); in flockfile() 130 lock_table_unlock(t); in flockfile() 142 lock_table_unlock(t); in flockfile() 158 LockTable* t = lock_table_lock(); in ftrylockfile() local [all …]
|
D | fflush.c | 56 int n, t; in __sflush() local 58 t = fp->_flags; in __sflush() 59 if ((t & __SWR) == 0) in __sflush() 72 fp->_w = t & (__SLBF|__SNBF) ? 0 : fp->_bf._size; in __sflush() 74 for (; n > 0; n -= t, p += t) { in __sflush() 75 t = (*fp->_write)(fp->_cookie, (char *)p, n); in __sflush() 76 if (t <= 0) { in __sflush()
|
/bionic/libc/tzcode/ |
D | strftime.c | 134 strftime(s, maxsize, format, t) in strftime() argument 138 const struct tm * const t; 140 return strftime_tz(s, maxsize, format, t, Locale); 144 strftime_tz(s, maxsize, format, t, locale) in strftime_tz() argument 148 const struct tm * const t; 156 p = _fmt(((format == NULL) ? "%c" : format), t, s, s + maxsize, &warn, locale); 196 _fmt(format, t, pt, ptlim, warnp, locale) in _fmt() argument 198 const struct tm * const t; 213 pt = _add((t->tm_wday < 0 || 214 t->tm_wday >= DAYSPERWEEK) ? [all …]
|
/bionic/libc/netbsd/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()
|
/bionic/libm/bsdsrc/ |
D | b_tgamma.c | 161 struct Double t, u, v; local 172 t.a = v.a*u.a; /* t = (x-.5)*(log(x)-1) */ 173 t.b = v.b*u.a + x*u.b; 175 t.b += lns2pi_lo; t.b += p; 176 u.a = lns2pi_hi + t.b; u.a += t.a; 177 u.b = t.a - u.a; 178 u.b += lns2pi_hi; u.b += t.b; 189 double y, ym1, t; local 204 t = r.a*yy.a; 206 r.a = t; [all …]
|