/bionic/libc/kernel/uapi/linux/byteorder/ |
D | little_endian.h | 29 #define __constant_htonl(x) ((__force __be32) ___constant_swab32((x))) argument 30 #define __constant_ntohl(x) ___constant_swab32((__force __be32) (x)) argument 31 #define __constant_htons(x) ((__force __be16) ___constant_swab16((x))) argument 32 #define __constant_ntohs(x) ___constant_swab16((__force __be16) (x)) argument 33 #define __constant_cpu_to_le64(x) ((__force __le64) (__u64) (x)) argument 34 #define __constant_le64_to_cpu(x) ((__force __u64) (__le64) (x)) argument 35 #define __constant_cpu_to_le32(x) ((__force __le32) (__u32) (x)) argument 36 #define __constant_le32_to_cpu(x) ((__force __u32) (__le32) (x)) argument 37 #define __constant_cpu_to_le16(x) ((__force __le16) (__u16) (x)) argument 38 #define __constant_le16_to_cpu(x) ((__force __u16) (__le16) (x)) argument [all …]
|
D | big_endian.h | 29 #define __constant_htonl(x) ((__force __be32) (__u32) (x)) argument 30 #define __constant_ntohl(x) ((__force __u32) (__be32) (x)) argument 31 #define __constant_htons(x) ((__force __be16) (__u16) (x)) argument 32 #define __constant_ntohs(x) ((__force __u16) (__be16) (x)) argument 33 #define __constant_cpu_to_le64(x) ((__force __le64) ___constant_swab64((x))) argument 34 #define __constant_le64_to_cpu(x) ___constant_swab64((__force __u64) (__le64) (x)) argument 35 #define __constant_cpu_to_le32(x) ((__force __le32) ___constant_swab32((x))) argument 36 #define __constant_le32_to_cpu(x) ___constant_swab32((__force __u32) (__le32) (x)) argument 37 #define __constant_cpu_to_le16(x) ((__force __le16) ___constant_swab16((x))) argument 38 #define __constant_le16_to_cpu(x) ___constant_swab16((__force __u16) (__le16) (x)) argument [all …]
|
/bionic/libc/include/sys/ |
D | endian.h | 48 #define __swap64(x) __BIONIC_CAST(static_cast,uint64_t,__builtin_bswap64(x)) argument 58 #define htonl(x) __swap32(x) argument 59 #define htons(x) __swap16(x) argument 60 #define ntohl(x) __swap32(x) argument 61 #define ntohs(x) __swap16(x) argument 64 #define htonq(x) __swap64(x) argument 65 #define ntohq(x) __swap64(x) argument 73 #define NTOHL(x) (x) = ntohl(__BIONIC_CAST(static_cast,u_int32_t,(x))) argument 74 #define NTOHS(x) (x) = ntohs(__BIONIC_CAST(static_cast,u_int16_t,(x))) argument 75 #define HTONL(x) (x) = htonl(__BIONIC_CAST(static_cast,u_int32_t,(x))) argument [all …]
|
/bionic/libm/ |
D | builtins.cpp | 21 double fabs(double x) { in fabs() argument 27 u.d = x; in fabs() 31 return __builtin_fabs(x); in fabs() 35 float fabsf(float x) { in fabsf() argument 36 return __builtin_fabsf(x); in fabsf() 40 long double fabsl(long double x) { return __builtin_fabsl(x); } in fabsl() argument 42 long double fabsl(long double x) { in fabsl() argument 44 return fabs(x); in fabsl() 49 float ceilf(float x) { return __builtin_ceilf(x); } in ceilf() argument 50 double ceil(double x) { return __builtin_ceil(x); } in ceil() argument [all …]
|
/bionic/libm/upstream-freebsd/lib/msun/ld128/ |
D | invtrig.h | 83 P(long double x) in P() argument 86 return (x * (pS0 + x * (pS1 + x * (pS2 + x * (pS3 + x * \ in P() 87 (pS4 + x * (pS5 + x * (pS6 + x * (pS7 + x * (pS8 + x * \ in P() 92 Q(long double x) in Q() argument 95 return (1.0 + x * (qS1 + x * (qS2 + x * (qS3 + x * (qS4 + x * \ in Q() 96 (qS5 + x * (qS6 + x * (qS7 + x * (qS8 + x * qS9))))))))); in Q() 100 T_even(long double x) in T_even() argument 103 return (aT[0] + x * (aT[2] + x * (aT[4] + x * (aT[6] + x * \ in T_even() 104 (aT[8] + x * (aT[10] + x * (aT[12] + x * (aT[14] + x * \ in T_even() 105 (aT[16] + x * (aT[18] + x * (aT[20] + x * aT[22]))))))))))); in T_even() [all …]
|
D | s_expl.c | 61 expl(long double x) in expl() argument 68 DOPRINT_START(&x); in expl() 71 u.e = x; in expl() 77 RETURNP(-1 / x); in expl() 78 RETURNP(x + x); /* x is +Inf or +NaN */ in expl() 80 if (x > o_threshold) in expl() 82 if (x < u_threshold) in expl() 85 RETURN2P(1, x); /* 1 with inexact iff x != 0 */ in expl() 91 __k_expl(x, &hi, &lo, &k); in expl() 204 expm1l(long double x) in expm1l() argument [all …]
|
/bionic/libm/upstream-freebsd/lib/msun/bsdsrc/ |
D | b_exp.c | 87 double exp(x) 88 double x; 94 if(x!=x) return(x); /* x is NaN */ 96 if( x <= lnhuge ) { 97 if( x >= lntiny ) { 101 k=invln2*x+copysign(0.5,x); /* k=NINT(x/ln2) */ 105 hi=x-k*ln2hi; 106 x=hi-(lo=k*ln2lo); 109 z=x*x; 110 c= x - z*(p1+z*(p2+z*(p3+z*(p4+z*p5)))); [all …]
|
D | b_tgamma.c | 127 tgamma(x) in tgamma() argument 128 double x; in tgamma() 132 if (x >= 6) { 133 if(x > 171.63) 134 return (x / zero); 135 u = large_gam(x); 137 } else if (x >= 1.0 + LEFT + x0) 138 return (small_gam(x)); 139 else if (x > 1.e-17) 140 return (smaller_gam(x)); [all …]
|
/bionic/libc/kernel/uapi/linux/ |
D | a.out.h | 66 #define N_BADMAG(x) (N_MAGIC(x) != OMAGIC && N_MAGIC(x) != NMAGIC && N_MAGIC(x) != ZMAGIC && N_MAGI… argument 68 #define _N_HDROFF(x) (1024 - sizeof(struct exec)) argument 70 #define N_TXTOFF(x) (N_MAGIC(x) == ZMAGIC ? _N_HDROFF((x)) + sizeof(struct exec) : (N_MAGIC(x) == Q… argument 73 #define N_DATOFF(x) (N_TXTOFF(x) + (x).a_text) argument 76 #define N_TRELOFF(x) (N_DATOFF(x) + (x).a_data) argument 79 #define N_DRELOFF(x) (N_TRELOFF(x) + N_TRSIZE(x)) argument 82 #define N_SYMOFF(x) (N_DRELOFF(x) + N_DRSIZE(x)) argument 85 #define N_STROFF(x) (N_SYMOFF(x) + N_SYMSIZE(x)) argument 88 #define N_TXTADDR(x) (N_MAGIC(x) == QMAGIC ? PAGE_SIZE : 0) argument 98 #define _N_SEGMENT_ROUND(x) ALIGN(x, SEGMENT_SIZE) argument [all …]
|
D | swab.h | 25 #define ___constant_swab16(x) ((__u16) ((((__u16) (x) & (__u16) 0x00ffU) << 8) | (((__u16) (x) & (_… argument 26 …x) ((__u32) ((((__u32) (x) & (__u32) 0x000000ffUL) << 24) | (((__u32) (x) & (__u32) 0x0000ff00UL) … argument 27 …x) ((__u64) ((((__u64) (x) & (__u64) 0x00000000000000ffULL) << 56) | (((__u64) (x) & (__u64) 0x000… argument 28 #define ___constant_swahw32(x) ((__u32) ((((__u32) (x) & (__u32) 0x0000ffffUL) << 16) | (((__u32) (… argument 29 #define ___constant_swahb32(x) ((__u32) ((((__u32) (x) & (__u32) 0x00ff00ffUL) << 8) | (((__u32) (x… argument 54 #define __swab16(x) (__u16) __builtin_bswap16((__u16) (x)) argument 55 #define __swab32(x) (__u32) __builtin_bswap32((__u32) (x)) argument 56 #define __swab64(x) (__u64) __builtin_bswap64((__u64) (x)) argument 60 #define __swahw32(x) (__builtin_constant_p((__u32) (x)) ? ___constant_swahw32(x) : __fswahw32(x)) argument 61 #define __swahb32(x) (__builtin_constant_p((__u32) (x)) ? ___constant_swahb32(x) : __fswahb32(x)) argument
|
D | mtio.h | 96 #define GMT_EOF(x) ((x) & 0x80000000) argument 97 #define GMT_BOT(x) ((x) & 0x40000000) argument 98 #define GMT_EOT(x) ((x) & 0x20000000) argument 99 #define GMT_SM(x) ((x) & 0x10000000) argument 100 #define GMT_EOD(x) ((x) & 0x08000000) argument 101 #define GMT_WR_PROT(x) ((x) & 0x04000000) argument 102 #define GMT_ONLINE(x) ((x) & 0x01000000) argument 103 #define GMT_D_6250(x) ((x) & 0x00800000) argument 104 #define GMT_D_1600(x) ((x) & 0x00400000) argument 105 #define GMT_D_800(x) ((x) & 0x00200000) argument [all …]
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | catrig.c | 39 #define isinf(x) (fabs(x) == INFINITY) argument 41 #define isnan(x) ((x) != (x)) argument 44 #define signbit(x) (__builtin_signbit(x)) argument 155 do_hard_work(double x, double y, double *rx, int *B_is_usable, double *B, in do_hard_work() argument 161 R = hypot(x, y + 1); /* |z+I| */ in do_hard_work() 162 S = hypot(x, y - 1); /* |z-I| */ in do_hard_work() 179 if (y == 1 && x < DBL_EPSILON * DBL_EPSILON / 128) { in do_hard_work() 184 *rx = sqrt(x); in do_hard_work() 185 } else if (x >= DBL_EPSILON * fabs(y - 1)) { in do_hard_work() 190 Am1 = f(x, 1 + y, R) + f(x, 1 - y, S); in do_hard_work() [all …]
|
D | catrigf.c | 53 #define isinf(x) (fabsf(x) == INFINITY) argument 55 #define isnan(x) ((x) != (x)) argument 58 #define signbit(x) (__builtin_signbitf(x)) argument 90 do_hard_work(float x, float y, float *rx, int *B_is_usable, float *B, in do_hard_work() argument 96 R = hypotf(x, y + 1); in do_hard_work() 97 S = hypotf(x, y - 1); in do_hard_work() 104 if (y == 1 && x < FLT_EPSILON * FLT_EPSILON / 128) { in do_hard_work() 105 *rx = sqrtf(x); in do_hard_work() 106 } else if (x >= FLT_EPSILON * fabsf(y - 1)) { in do_hard_work() 107 Am1 = f(x, 1 + y, R) + f(x, 1 - y, S); in do_hard_work() [all …]
|
D | catrigl.c | 53 #define isinf(x) (fabsl(x) == INFINITY) argument 55 #define isnan(x) ((x) != (x)) argument 58 #define signbit(x) (__builtin_signbitl(x)) argument 109 do_hard_work(long double x, long double y, long double *rx, int *B_is_usable, in do_hard_work() argument 115 R = hypotl(x, y + 1); in do_hard_work() 116 S = hypotl(x, y - 1); in do_hard_work() 123 if (y == 1 && x < LDBL_EPSILON * LDBL_EPSILON / 128) { in do_hard_work() 124 *rx = sqrtl(x); in do_hard_work() 125 } else if (x >= LDBL_EPSILON * fabsl(y - 1)) { in do_hard_work() 126 Am1 = f(x, 1 + y, R) + f(x, 1 - y, S); in do_hard_work() [all …]
|
D | s_atanf.c | 49 atanf(float x) in atanf() argument 54 GET_FLOAT_WORD(hx,x); in atanf() 58 return x+x; /* NaN */ in atanf() 63 if(huge+x>one) return x; /* raise inexact */ in atanf() 67 x = fabsf(x); in atanf() 70 id = 0; x = ((float)2.0*x-one)/((float)2.0+x); in atanf() 72 id = 1; x = (x-one)/(x+one); in atanf() 76 id = 2; x = (x-(float)1.5)/(one+(float)1.5*x); in atanf() 78 id = 3; x = -(float)1.0/x; in atanf() 82 z = x*x; in atanf() [all …]
|
D | s_atan.c | 74 atan(double x) in atan() argument 79 GET_HIGH_WORD(hx,x); in atan() 83 GET_LOW_WORD(low,x); in atan() 86 return x+x; /* NaN */ in atan() 91 if(huge+x>one) return x; /* raise inexact */ in atan() 95 x = fabs(x); in atan() 98 id = 0; x = (2.0*x-one)/(2.0+x); in atan() 100 id = 1; x = (x-one)/(x+one); in atan() 104 id = 2; x = (x-1.5)/(one+1.5*x); in atan() 106 id = 3; x = -1.0/x; in atan() [all …]
|
D | e_remainderf.c | 26 __ieee754_remainderf(float x, float p) in __ieee754_remainderf() argument 32 GET_FLOAT_WORD(hx,x); in __ieee754_remainderf() 42 return nan_mix_op(x, p, *)/nan_mix_op(x, p, *); in __ieee754_remainderf() 45 if (hp<=0x7effffff) x = __ieee754_fmodf(x,p+p); /* now x < 2p */ in __ieee754_remainderf() 46 if ((hx-hp)==0) return zero*x; in __ieee754_remainderf() 47 x = fabsf(x); in __ieee754_remainderf() 50 if(x+x>p) { in __ieee754_remainderf() 51 x-=p; in __ieee754_remainderf() 52 if(x+x>=p) x -= p; in __ieee754_remainderf() 56 if(x>p_half) { in __ieee754_remainderf() [all …]
|
D | s_atanl.c | 33 atanl(long double x) in atanl() argument 41 u.e = x; in atanl() 47 return x+x; /* NaN */ in atanl() 56 if(huge+x>one) return x; /* raise inexact */ in atanl() 60 x = fabsl(x); in atanl() 63 id = 0; x = (2.0*x-one)/(2.0+x); in atanl() 65 id = 1; x = (x-one)/(x+one); in atanl() 69 id = 2; x = (x-1.5)/(one+1.5*x); in atanl() 71 id = 3; x = -1.0/x; in atanl() 75 z = x*x; in atanl() [all …]
|
D | s_expm1f.c | 42 expm1f(float x) in expm1f() argument 48 GET_FLOAT_WORD(hx,x); in expm1f() 56 return x+x; /* NaN */ in expm1f() 58 return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */ in expm1f() 59 if(x > o_threshold) return huge*huge; /* overflow */ in expm1f() 62 if(x+tiny<(float)0.0) /* raise inexact */ in expm1f() 71 {hi = x - ln2_hi; lo = ln2_lo; k = 1;} in expm1f() 73 {hi = x + ln2_hi; lo = -ln2_lo; k = -1;} in expm1f() 75 k = invln2*x+((xsb==0)?(float)0.5:(float)-0.5); in expm1f() 77 hi = x - t*ln2_hi; /* t*ln2_hi is exact here */ in expm1f() [all …]
|
D | e_remainder.c | 35 __ieee754_remainder(double x, double p) in __ieee754_remainder() argument 41 EXTRACT_WORDS(hx,lx,x); in __ieee754_remainder() 52 return nan_mix_op(x, p, *)/nan_mix_op(x, p, *); in __ieee754_remainder() 55 if (hp<=0x7fdfffff) x = __ieee754_fmod(x,p+p); /* now x < 2p */ in __ieee754_remainder() 56 if (((hx-hp)|(lx-lp))==0) return zero*x; in __ieee754_remainder() 57 x = fabs(x); in __ieee754_remainder() 60 if(x+x>p) { in __ieee754_remainder() 61 x-=p; in __ieee754_remainder() 62 if(x+x>=p) x -= p; in __ieee754_remainder() 66 if(x>p_half) { in __ieee754_remainder() [all …]
|
D | s_expm1.c | 133 expm1(double x) in expm1() argument 139 GET_HIGH_WORD(hx,x); in expm1() 148 GET_LOW_WORD(low,x); in expm1() 150 return x+x; /* NaN */ in expm1() 151 else return (xsb==0)? x:-1.0;/* exp(+-inf)={inf,-1} */ in expm1() 153 if(x > o_threshold) return huge*huge; /* overflow */ in expm1() 156 if(x+tiny<0.0) /* raise inexact */ in expm1() 165 {hi = x - ln2_hi; lo = ln2_lo; k = 1;} in expm1() 167 {hi = x + ln2_hi; lo = -ln2_lo; k = -1;} in expm1() 169 k = invln2*x+((xsb==0)?0.5:-0.5); in expm1() [all …]
|
D | s_nexttoward.c | 33 nexttoward(double x, long double y) in nexttoward() argument 40 EXTRACT_WORDS(hx,lx,x); in nexttoward() 47 return x+y; /* x or y is nan */ in nexttoward() 48 if(x==y) return (double)y; /* x=y, return y */ in nexttoward() 49 if(x==0.0) { in nexttoward() 50 INSERT_WORDS(x,uy.bits.sign<<31,1); /* return +-minsubnormal */ in nexttoward() 51 t = x*x; in nexttoward() 52 if(t==x) return t; else return x; /* raise underflow flag */ in nexttoward() 54 if(hx>0.0 ^ x < y) { /* x -= ulp */ in nexttoward() 62 if(ix>=0x7ff00000) return x+x; /* overflow */ in nexttoward() [all …]
|
/bionic/libc/kernel/uapi/sound/ |
D | emu10k1.h | 44 #define FXBUS(x) (0x00 + (x)) argument 45 #define EXTIN(x) (0x10 + (x)) argument 46 #define EXTOUT(x) (0x20 + (x)) argument 47 #define FXBUS2(x) (0x30 + (x)) argument 76 #define GPR(x) (FXGPREGBASE + (x)) argument 77 #define ITRAM_DATA(x) (TANKMEMDATAREGBASE + 0x00 + (x)) argument 78 #define ETRAM_DATA(x) (TANKMEMDATAREGBASE + 0x80 + (x)) argument 79 #define ITRAM_ADDR(x) (TANKMEMADDRREGBASE + 0x00 + (x)) argument 80 #define ETRAM_ADDR(x) (TANKMEMADDRREGBASE + 0x80 + (x)) argument 81 #define A_ITRAM_DATA(x) (TANKMEMDATAREGBASE + 0x00 + (x)) argument [all …]
|
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/ |
D | gmisc.c | 41 ULong *x, *x1, *xe, y; local 44 x = x1 = b->x; 47 xe = x + b->wds; 48 x += n; 51 y = *x++ >> k; 52 while(x < xe) { 53 *x1++ = (y | (*x << n)) & ALL_ON; 54 y = *x++ >> k; 60 while(x < xe) 61 *x1++ = *x++; [all …]
|
D | misc.c | 55 int x; local 68 x = 1 << k; 70 rv = (Bigint *)MALLOC(sizeof(Bigint) + (x-1)*sizeof(ULong)); 74 len = (sizeof(Bigint) + (x-1)*sizeof(ULong) + sizeof(double) - 1) 87 rv->maxwds = x; 127 ULong x = *y; local 129 if (x & 7) { 130 if (x & 1) 132 if (x & 2) { 133 *y = x >> 1; [all …]
|