/bionic/libc/kernel/common/linux/mtd/ |
D | cfi_endian.h | 22 #define cpu_to_cfi8(x) (x) argument 24 #define cfi8_to_cpu(x) (x) argument 25 #define cpu_to_cfi16(x) cpu_to_le16(x) argument 26 #define cpu_to_cfi32(x) cpu_to_le32(x) argument 27 #define cpu_to_cfi64(x) cpu_to_le64(x) argument 29 #define cfi16_to_cpu(x) le16_to_cpu(x) argument 30 #define cfi32_to_cpu(x) le32_to_cpu(x) argument 31 #define cfi64_to_cpu(x) le64_to_cpu(x) argument 34 #define cpu_to_cfi8(x) (x) argument 35 #define cfi8_to_cpu(x) (x) argument [all …]
|
/bionic/libc/include/sys/ |
D | endian.h | 56 #define __swap16gen(x) __statement({ \ argument 57 __uint16_t __swap16gen_x = (x); \ 63 #define __swap32gen(x) __statement({ \ argument 64 __uint32_t __swap32gen_x = (x); \ 72 #define __swap64gen(x) __statement({ \ argument 73 __uint64_t __swap64gen_x = (x); \ 88 #define __swap16gen(x) \ argument 89 (__uint16_t)(((__uint16_t)(x) & 0xff) << 8 | ((__uint16_t)(x) & 0xff00) >> 8) 91 #define __swap32gen(x) \ argument 92 (__uint32_t)(((__uint32_t)(x) & 0xff) << 24 | \ [all …]
|
/bionic/libc/kernel/common/linux/byteorder/ |
D | big_endian.h | 31 #define __constant_htonl(x) ((__force __be32)(__u32)(x)) argument 32 #define __constant_ntohl(x) ((__force __u32)(__be32)(x)) argument 34 #define __constant_htons(x) ((__force __be16)(__u16)(x)) argument 35 #define __constant_ntohs(x) ((__force __u16)(__be16)(x)) argument 36 #define __constant_cpu_to_le64(x) ((__force __le64)___constant_swab64((x))) argument 37 #define __constant_le64_to_cpu(x) ___constant_swab64((__force __u64)(__le64)(x)) argument 39 #define __constant_cpu_to_le32(x) ((__force __le32)___constant_swab32((x))) argument 40 #define __constant_le32_to_cpu(x) ___constant_swab32((__force __u32)(__le32)(x)) argument 41 #define __constant_cpu_to_le16(x) ((__force __le16)___constant_swab16((x))) argument 42 #define __constant_le16_to_cpu(x) ___constant_swab16((__force __u16)(__le16)(x)) argument [all …]
|
D | little_endian.h | 31 #define __constant_htonl(x) ((__force __be32)___constant_swab32((x))) argument 32 #define __constant_ntohl(x) ___constant_swab32((__force __be32)(x)) argument 34 #define __constant_htons(x) ((__force __be16)___constant_swab16((x))) argument 35 #define __constant_ntohs(x) ___constant_swab16((__force __be16)(x)) argument 36 #define __constant_cpu_to_le64(x) ((__force __le64)(__u64)(x)) argument 37 #define __constant_le64_to_cpu(x) ((__force __u64)(__le64)(x)) argument 39 #define __constant_cpu_to_le32(x) ((__force __le32)(__u32)(x)) argument 40 #define __constant_le32_to_cpu(x) ((__force __u32)(__le32)(x)) argument 41 #define __constant_cpu_to_le16(x) ((__force __le16)(__u16)(x)) argument 42 #define __constant_le16_to_cpu(x) ((__force __u16)(__le16)(x)) argument [all …]
|
D | swabb.h | 21 #define ___swahw32(x) ({ __u32 __x = (x); ((__u32)( (((__u32)(__x) & (__u32)0x0000ffffUL) <<… argument 22 #define ___swahb32(x) ({ __u32 __x = (x); ((__u32)( (((__u32)(__x) & (__u32)0x00ff00ffUL) <<… argument 24 #define ___constant_swahw32(x) ((__u32)( (((__u32)(x) & (__u32)0x0000ffffUL) << 16) | (((__u3… argument 25 #define ___constant_swahb32(x) ((__u32)( (((__u32)(x) & (__u32)0x00ff00ffUL) << 8) | (((__u32… argument 27 #define __arch__swahw32(x) ___swahw32(x) argument 31 #define __arch__swahb32(x) ___swahb32(x) argument 35 #define __arch__swahw32p(x) __swahw32(*(x)) argument 39 #define __arch__swahb32p(x) __swahb32(*(x)) argument 42 #define __arch__swahw32s(x) do { *(x) = __swahw32p((x)); } while (0) argument 46 #define __arch__swahb32s(x) do { *(x) = __swahb32p((x)); } while (0) argument [all …]
|
D | swab.h | 22 #define ___swab16(x) ({ __u16 __x = (x); ((__u16)( (((__u16)(__x) & (__u16)0x00ffU) << 8) | … argument 24 #define ___swab32(x) ({ __u32 __x = (x); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << … argument 25 #define ___swab64(x) ({ __u64 __x = (x); ((__u64)( (__u64)(((__u64)(__x) & (__u64)0x00000000… argument 26 #define ___constant_swab16(x) ((__u16)( (((__u16)(x) & (__u16)0x00ffU) << 8) | (((__u16)(x) &… argument 27 …x) ((__u32)( (((__u32)(x) & (__u32)0x000000ffUL) << 24) | (((__u32)(x) & (__u32)0x0000ff00UL… argument 29 …x) ((__u64)( (__u64)(((__u64)(x) & (__u64)0x00000000000000ffULL) << 56) | (__u64)(((__u64)(x… argument 31 #define __arch__swab16(x) ({ __u16 __tmp = (x) ; ___swab16(__tmp); }) argument 35 #define __arch__swab32(x) ({ __u32 __tmp = (x) ; ___swab32(__tmp); }) argument 39 #define __arch__swab64(x) ({ __u64 __tmp = (x) ; ___swab64(__tmp); }) argument 42 #define __arch__swab16p(x) __arch__swab16(*(x)) argument [all …]
|
/bionic/libc/kernel/common/linux/ |
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 29 #define ___constant_swahw32(x) ((__u32)( (((__u32)(x) & (__u32)0x0000ffffUL) << 16) | (((__u32)… argument 30 #define ___constant_swahb32(x) ((__u32)( (((__u32)(x) & (__u32)0x00ff00ffUL) << 8) | (((__u32)(… argument 51 #define __swab16(x) (__builtin_constant_p((__u16)(x)) ? ___constant_swab16(x) : __fswab16(x)) argument 52 #define __swab32(x) (__builtin_constant_p((__u32)(x)) ? ___constant_swab32(x) : __fswab32(x)) argument 54 #define __swab64(x) (__builtin_constant_p((__u64)(x)) ? ___constant_swab64(x) : __fswab64(x)) argument 55 #define __swahw32(x) (__builtin_constant_p((__u32)(x)) ? ___constant_swahw32(x) : __fswahw32(… argument 56 #define __swahb32(x) (__builtin_constant_p((__u32)(x)) ? ___constant_swahb32(x) : __fswahb32(… argument
|
/bionic/libm/upstream-freebsd/lib/msun/bsdsrc/ |
D | b_exp.c | 89 double exp(x) 90 double x; 96 if(x!=x) return(x); /* x is NaN */ 98 if( x <= lnhuge ) { 99 if( x >= lntiny ) { 103 k=invln2*x+copysign(0.5,x); /* k=NINT(x/ln2) */ 107 hi=x-k*ln2hi; 108 x=hi-(lo=k*ln2lo); 111 z=x*x; 112 c= x - z*(p1+z*(p2+z*(p3+z*(p4+z*p5)))); [all …]
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | e_remainderf.c | 26 __ieee754_remainderf(float x, float p) in __ieee754_remainderf() argument 32 GET_FLOAT_WORD(hx,x); in __ieee754_remainderf() 39 if(hp==0) return (x*p)/(x*p); /* p = 0 */ in __ieee754_remainderf() 42 return ((long double)x*p)/((long double)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() [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() 48 if((hp|lp)==0) return (x*p)/(x*p); /* p = 0 */ in __ieee754_remainder() 52 return ((long double)x*p)/((long double)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() [all …]
|
D | e_atanhf.c | 27 __ieee754_atanhf(float x) in __ieee754_atanhf() argument 31 GET_FLOAT_WORD(hx,x); in __ieee754_atanhf() 34 return (x-x)/(x-x); in __ieee754_atanhf() 36 return x/zero; in __ieee754_atanhf() 37 if(ix<0x31800000&&(huge+x)>zero) return x; /* x<2**-28 */ in __ieee754_atanhf() 38 SET_FLOAT_WORD(x,ix); in __ieee754_atanhf() 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()
|
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 | e_atanh.c | 43 __ieee754_atanh(double x) in __ieee754_atanh() argument 48 EXTRACT_WORDS(hx,lx,x); in __ieee754_atanh() 51 return (x-x)/(x-x); in __ieee754_atanh() 53 return x/zero; in __ieee754_atanh() 54 if(ix<0x3e300000&&(huge+x)>zero) return x; /* x<2**-28 */ in __ieee754_atanh() 55 SET_HIGH_WORD(x,ix); in __ieee754_atanh() 57 t = x+x; in __ieee754_atanh() 58 t = 0.5*log1p(t+t*x/(one-x)); in __ieee754_atanh() 60 t = 0.5*log1p((x+x)/(one-x)); in __ieee754_atanh()
|
D | s_nexttowardf.c | 24 nexttowardf(float x, long double y) in nexttowardf() argument 30 GET_FLOAT_WORD(hx,x); in nexttowardf() 37 return x+y; /* x or y is nan */ in nexttowardf() 38 if(x==y) return (float)y; /* x=y, return y */ in nexttowardf() 40 SET_FLOAT_WORD(x,(uy.bits.sign<<31)|1);/* return +-minsubnormal */ in nexttowardf() 41 t = x*x; in nexttowardf() 42 if(t==x) return t; else return x; /* raise underflow flag */ in nexttowardf() 44 if(hx>=0 ^ x < y) /* x -= ulp */ in nexttowardf() 49 if(ix>=0x7f800000) return x+x; /* overflow */ in nexttowardf() 51 t = x*x; in nexttowardf() [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_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_acoshf.c | 27 __ieee754_acoshf(float x) in __ieee754_acoshf() argument 31 GET_FLOAT_WORD(hx,x); in __ieee754_acoshf() 33 return (x-x)/(x-x); in __ieee754_acoshf() 36 return x+x; in __ieee754_acoshf() 38 return __ieee754_logf(x)+ln2; /* acosh(huge)=log(2x) */ in __ieee754_acoshf() 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()
|
D | s_ccoshf.c | 44 float x, y, h; in ccoshf() local 47 x = crealf(z); in ccoshf() 50 GET_FLOAT_WORD(hx, x); in ccoshf() 58 return (cpackf(coshf(x), x * y)); in ccoshf() 60 return (cpackf(coshf(x) * cosf(y), sinhf(x) * sinf(y))); in ccoshf() 65 h = expf(fabsf(x)) * 0.5f; in ccoshf() 66 return (cpackf(h * cosf(y), copysignf(h, x) * sinf(y))); in ccoshf() 69 z = __ldexp_cexpf(cpackf(fabsf(x), y), -1); in ccoshf() 70 return (cpackf(crealf(z), cimagf(z) * copysignf(1, x))); in ccoshf() 73 h = huge * x; in ccoshf() [all …]
|
D | s_ccosh.c | 50 double x, y, h; in ccosh() local 53 x = creal(z); in ccosh() 56 EXTRACT_WORDS(hx, lx, x); in ccosh() 65 return (cpack(cosh(x), x * y)); in ccosh() 67 return (cpack(cosh(x) * cos(y), sinh(x) * sin(y))); in ccosh() 72 h = exp(fabs(x)) * 0.5; in ccosh() 73 return (cpack(h * cos(y), copysign(h, x) * sin(y))); in ccosh() 76 z = __ldexp_cexp(cpack(fabs(x), y), -1); in ccosh() 77 return (cpack(creal(z), cimag(z) * copysign(1, x))); in ccosh() 80 h = huge * x; in ccosh() [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 …]
|
D | e_acosh.c | 40 __ieee754_acosh(double x) in __ieee754_acosh() argument 45 EXTRACT_WORDS(hx,lx,x); in __ieee754_acosh() 47 return (x-x)/(x-x); in __ieee754_acosh() 50 return x+x; in __ieee754_acosh() 52 return __ieee754_log(x)+ln2; /* acosh(huge)=log(2x) */ in __ieee754_acosh() 56 t=x*x; in __ieee754_acosh() 57 return __ieee754_log(2.0*x-one/(x+sqrt(t-one))); in __ieee754_acosh() 59 t = x-one; in __ieee754_acosh()
|
/bionic/libc/kernel/arch-mips/asm/sibyte/ |
D | sb1250_scd.h | 26 #define V_SYS_REVISION(x) _SB_MAKEVALUE(x, S_SYS_REVISION) argument 27 #define G_SYS_REVISION(x) _SB_GETVALUE(x, S_SYS_REVISION, M_SYS_REVISION) argument 75 #define V_SYS_L2C_SIZE(x) _SB_MAKEVALUE(x, S_SYS_L2C_SIZE) argument 76 #define G_SYS_L2C_SIZE(x) _SB_GETVALUE(x, S_SYS_L2C_SIZE, M_SYS_L2C_SIZE) argument 89 #define V_SYS_NUM_CPUS(x) _SB_MAKEVALUE(x, S_SYS_NUM_CPUS) argument 90 #define G_SYS_NUM_CPUS(x) _SB_GETVALUE(x, S_SYS_NUM_CPUS, M_SYS_NUM_CPUS) argument 94 #define V_SYS_PART(x) _SB_MAKEVALUE(x, S_SYS_PART) argument 95 #define G_SYS_PART(x) _SB_GETVALUE(x, S_SYS_PART, M_SYS_PART) argument 105 #define V_SYS_SOC_TYPE(x) _SB_MAKEVALUE(x, S_SYS_SOC_TYPE) argument 106 #define G_SYS_SOC_TYPE(x) _SB_GETVALUE(x, S_SYS_SOC_TYPE, M_SYS_SOC_TYPE) argument [all …]
|
D | bcm1480_scd.h | 40 #define V_BCM1480_SYS_PLL_DIV(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_PLL_DIV) argument 41 #define G_BCM1480_SYS_PLL_DIV(x) _SB_GETVALUE(x, S_BCM1480_SYS_PLL_DIV, M_BCM1480_SYS_PLL_DIV) argument 45 #define V_BCM1480_SYS_SW_DIV(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_SW_DIV) argument 46 #define G_BCM1480_SYS_SW_DIV(x) _SB_GETVALUE(x, S_BCM1480_SYS_SW_DIV, M_BCM1480_SYS_SW_DIV) argument 52 #define V_BCM1480_SYS_BOOT_MODE(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_BOOT_MODE) argument 54 #define G_BCM1480_SYS_BOOT_MODE(x) _SB_GETVALUE(x, S_BCM1480_SYS_BOOT_MODE, M_BCM1480_SYS_BOOT_MODE) argument 71 #define V_BCM1480_SYS_CONFIG(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_CONFIG) argument 72 #define G_BCM1480_SYS_CONFIG(x) _SB_GETVALUE(x, S_BCM1480_SYS_CONFIG, M_BCM1480_SYS_CONFIG) argument 77 #define V_BCM1480_SYS_NODEID(x) _SB_MAKEVALUE(x, S_BCM1480_SYS_NODEID) argument 79 #define G_BCM1480_SYS_NODEID(x) _SB_GETVALUE(x, S_BCM1480_SYS_NODEID, M_BCM1480_SYS_NODEID) argument [all …]
|
/bionic/libc/kernel/arch-arm/asm/ |
D | byteorder.h | 24 static inline __attribute_const__ __u32 ___arch__swab32(__u32 x) in ___arch__swab32() argument 29 if (!__builtin_constant_p(x)) { in ___arch__swab32() 30 __asm__ ("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x)); in ___arch__swab32() 34 t = x ^ ((x << 16) | (x >> 16)); in ___arch__swab32() 35 x = (x << 24) | (x >> 8); in ___arch__swab32() 37 x ^= (t >> 8); in ___arch__swab32() 39 return x; in ___arch__swab32() 41 #define __arch__swab32(x) ___arch__swab32(x) argument
|
/bionic/linker/ |
D | linker_debug.h | 66 #define _PRINTVF(v,x...) \ argument 68 if (gLdDebugVerbosity > (v)) __libc_format_log(5-(v),"linker",x); \ 71 #define _PRINTVF(v,x...) \ argument 73 if (gLdDebugVerbosity > (v)) { __libc_format_fd(1, x); write(1, "\n", 1); } \ 77 #define PRINT(x...) _PRINTVF(-1, x) argument 78 #define INFO(x...) _PRINTVF(0, x) argument 79 #define TRACE(x...) _PRINTVF(1, x) argument 82 #define DEBUG(x...) _PRINTVF(2, "DEBUG: " x) argument 84 #define DEBUG(x...) do {} while (0) argument 87 #define TRACE_TYPE(t,x...) do { if (DO_TRACE_##t) { TRACE(x); } } while (0) argument
|