Home
last modified time | relevance | path

Searched refs:x (Results 1 – 25 of 271) sorted by relevance

1234567891011

/bionic/libc/kernel/common/linux/mtd/
Dcfi_endian.h17 #define cpu_to_cfi8(x) (x) argument
18 #define cfi8_to_cpu(x) (x) argument
19 #define cpu_to_cfi16(x) cpu_to_le16(x) argument
20 #define cpu_to_cfi32(x) cpu_to_le32(x) argument
21 #define cpu_to_cfi64(x) cpu_to_le64(x) argument
22 #define cfi16_to_cpu(x) le16_to_cpu(x) argument
23 #define cfi32_to_cpu(x) le32_to_cpu(x) argument
24 #define cfi64_to_cpu(x) le64_to_cpu(x) argument
26 #define cpu_to_cfi8(x) (x) argument
27 #define cfi8_to_cpu(x) (x) argument
[all …]
/bionic/libc/kernel/common/linux/byteorder/
Dlittle_endian.h25 #define __constant_htonl(x) ((__force __be32)___constant_swab32((x))) argument
26 #define __constant_ntohl(x) ___constant_swab32((__force __be32)(x)) argument
27 #define __constant_htons(x) ((__force __be16)___constant_swab16((x))) argument
28 #define __constant_ntohs(x) ___constant_swab16((__force __be16)(x)) argument
29 #define __constant_cpu_to_le64(x) ((__force __le64)(__u64)(x)) argument
30 #define __constant_le64_to_cpu(x) ((__force __u64)(__le64)(x)) argument
31 #define __constant_cpu_to_le32(x) ((__force __le32)(__u32)(x)) argument
32 #define __constant_le32_to_cpu(x) ((__force __u32)(__le32)(x)) argument
33 #define __constant_cpu_to_le16(x) ((__force __le16)(__u16)(x)) argument
34 #define __constant_le16_to_cpu(x) ((__force __u16)(__le16)(x)) argument
[all …]
Dbig_endian.h25 #define __constant_htonl(x) ((__force __be32)(__u32)(x)) argument
26 #define __constant_ntohl(x) ((__force __u32)(__be32)(x)) argument
27 #define __constant_htons(x) ((__force __be16)(__u16)(x)) argument
28 #define __constant_ntohs(x) ((__force __u16)(__be16)(x)) argument
29 #define __constant_cpu_to_le64(x) ((__force __le64)___constant_swab64((x))) argument
30 #define __constant_le64_to_cpu(x) ___constant_swab64((__force __u64)(__le64)(x)) argument
31 #define __constant_cpu_to_le32(x) ((__force __le32)___constant_swab32((x))) argument
32 #define __constant_le32_to_cpu(x) ___constant_swab32((__force __u32)(__le32)(x)) argument
33 #define __constant_cpu_to_le16(x) ((__force __le16)___constant_swab16((x))) argument
34 #define __constant_le16_to_cpu(x) ___constant_swab16((__force __u16)(__le16)(x)) argument
[all …]
Dswabb.h15 #define ___swahw32(x) ({ __u32 __x = (x); ((__u32)( (((__u32)(__x) & (__u32)0x0000ffffUL) <<… argument
16 #define ___swahb32(x) ({ __u32 __x = (x); ((__u32)( (((__u32)(__x) & (__u32)0x00ff00ffUL) <<… argument
18 #define ___constant_swahw32(x) ((__u32)( (((__u32)(x) & (__u32)0x0000ffffUL) << 16) | (((__u3… argument
19 #define ___constant_swahb32(x) ((__u32)( (((__u32)(x) & (__u32)0x00ff00ffUL) << 8) | (((__u32… argument
22 #define __arch__swahw32(x) ___swahw32(x) argument
25 #define __arch__swahb32(x) ___swahb32(x) argument
29 #define __arch__swahw32p(x) __swahw32(*(x)) argument
32 #define __arch__swahb32p(x) __swahb32(*(x)) argument
36 #define __arch__swahw32s(x) do { *(x) = __swahw32p((x)); } while (0) argument
39 #define __arch__swahb32s(x) do { *(x) = __swahb32p((x)); } while (0) argument
[all …]
Dswab.h17 #define ___swab16(x) ({ __u16 __x = (x); ((__u16)( (((__u16)(__x) & (__u16)0x00ffU) << 8) | … argument
19 #define ___swab32(x) ({ __u32 __x = (x); ((__u32)( (((__u32)(__x) & (__u32)0x000000ffUL) << … argument
21 #define ___swab64(x) ({ __u64 __x = (x); ((__u64)( (__u64)(((__u64)(__x) & (__u64)0x00000000… argument
23 #define ___constant_swab16(x) ((__u16)( (((__u16)(x) & (__u16)0x00ffU) << 8) | (((__u16)(x) &… argument
24x) ((__u32)( (((__u32)(x) & (__u32)0x000000ffUL) << 24) | (((__u32)(x) & (__u32)0x0000ff00UL… argument
25x) ((__u64)( (__u64)(((__u64)(x) & (__u64)0x00000000000000ffULL) << 56) | (__u64)(((__u64)(x argument
28 #define __arch__swab16(x) ({ __u16 __tmp = (x) ; ___swab16(__tmp); }) argument
31 #define __arch__swab32(x) ({ __u32 __tmp = (x) ; ___swab32(__tmp); }) argument
34 #define __arch__swab64(x) ({ __u64 __tmp = (x) ; ___swab64(__tmp); }) argument
38 #define __arch__swab16p(x) __arch__swab16(*(x)) argument
[all …]
/bionic/libc/include/sys/
Dendian.h55 #define __swap16gen(x) __statement({ \ argument
56 __uint16_t __swap16gen_x = (x); \
62 #define __swap32gen(x) __statement({ \ argument
63 __uint32_t __swap32gen_x = (x); \
71 #define __swap64gen(x) __statement({ \ argument
72 __uint64_t __swap64gen_x = (x); \
87 #define __swap16gen(x) \ argument
88 (__uint16_t)(((__uint16_t)(x) & 0xff) << 8 | ((__uint16_t)(x) & 0xff00) >> 8)
90 #define __swap32gen(x) \ argument
91 (__uint32_t)(((__uint32_t)(x) & 0xff) << 24 | \
[all …]
/bionic/libm/src/
De_remainderf.c27 __ieee754_remainderf(float x, float p) in __ieee754_remainderf() argument
33 GET_FLOAT_WORD(hx,x); in __ieee754_remainderf()
40 if(hp==0) return (x*p)/(x*p); /* p = 0 */ in __ieee754_remainderf()
43 return (x*p)/(x*p); in __ieee754_remainderf()
46 if (hp<=0x7effffff) x = __ieee754_fmodf(x,p+p); /* now x < 2p */ in __ieee754_remainderf()
47 if ((hx-hp)==0) return zero*x; in __ieee754_remainderf()
48 x = fabsf(x); in __ieee754_remainderf()
51 if(x+x>p) { in __ieee754_remainderf()
52 x-=p; in __ieee754_remainderf()
53 if(x+x>=p) x -= p; in __ieee754_remainderf()
[all …]
De_remainder.c34 __ieee754_remainder(double x, double p) in __ieee754_remainder() argument
40 EXTRACT_WORDS(hx,lx,x); in __ieee754_remainder()
47 if((hp|lp)==0) return (x*p)/(x*p); /* p = 0 */ in __ieee754_remainder()
51 return (x*p)/(x*p); in __ieee754_remainder()
54 if (hp<=0x7fdfffff) x = __ieee754_fmod(x,p+p); /* now x < 2p */ in __ieee754_remainder()
55 if (((hx-hp)|(lx-lp))==0) return zero*x; in __ieee754_remainder()
56 x = fabs(x); in __ieee754_remainder()
59 if(x+x>p) { in __ieee754_remainder()
60 x-=p; in __ieee754_remainder()
61 if(x+x>=p) x -= p; in __ieee754_remainder()
[all …]
De_atanhf.c28 __ieee754_atanhf(float x) in __ieee754_atanhf() argument
32 GET_FLOAT_WORD(hx,x); in __ieee754_atanhf()
35 return (x-x)/(x-x); in __ieee754_atanhf()
37 return x/zero; in __ieee754_atanhf()
38 if(ix<0x31800000&&(huge+x)>zero) return x; /* x<2**-28 */ in __ieee754_atanhf()
39 SET_FLOAT_WORD(x,ix); in __ieee754_atanhf()
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()
De_atanh.c44 __ieee754_atanh(double x) in __ieee754_atanh() argument
49 EXTRACT_WORDS(hx,lx,x); in __ieee754_atanh()
52 return (x-x)/(x-x); in __ieee754_atanh()
54 return x/zero; in __ieee754_atanh()
55 if(ix<0x3e300000&&(huge+x)>zero) return x; /* x<2**-28 */ in __ieee754_atanh()
56 SET_HIGH_WORD(x,ix); in __ieee754_atanh()
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()
Ds_atanf.c56 atanf(float x) in atanf() argument
61 GET_FLOAT_WORD(hx,x); in atanf()
65 return x+x; /* NaN */ in atanf()
70 if(huge+x>one) return x; /* raise inexact */ in atanf()
74 x = fabsf(x); in atanf()
77 id = 0; x = ((float)2.0*x-one)/((float)2.0+x); in atanf()
79 id = 1; x = (x-one)/(x+one); in atanf()
83 id = 2; x = (x-(float)1.5)/(one+(float)1.5*x); in atanf()
85 id = 3; x = -(float)1.0/x; in atanf()
89 z = x*x; in atanf()
[all …]
Ds_atan.c73 atan(double x) in atan() argument
78 GET_HIGH_WORD(hx,x); in atan()
82 GET_LOW_WORD(low,x); in atan()
85 return x+x; /* NaN */ in atan()
90 if(huge+x>one) return x; /* raise inexact */ in atan()
94 x = fabs(x); in atan()
97 id = 0; x = (2.0*x-one)/(2.0+x); in atan()
99 id = 1; x = (x-one)/(x+one); in atan()
103 id = 2; x = (x-1.5)/(one+1.5*x); in atan()
105 id = 3; x = -1.0/x; in atan()
[all …]
De_acoshf.c28 __ieee754_acoshf(float x) in __ieee754_acoshf() argument
32 GET_FLOAT_WORD(hx,x); in __ieee754_acoshf()
34 return (x-x)/(x-x); in __ieee754_acoshf()
37 return x+x; in __ieee754_acoshf()
39 return __ieee754_logf(x)+ln2; /* acosh(huge)=log(2x) */ in __ieee754_acoshf()
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()
Ds_scalbn.c37 scalbn (double x, int n) in scalbn() argument
40 EXTRACT_WORDS(hx,lx,x); in scalbn()
43 if ((lx|(hx&0x7fffffff))==0) return x; /* +-0 */ in scalbn()
44 x *= two54; in scalbn()
45 GET_HIGH_WORD(hx,x); in scalbn()
47 if (n< -50000) return tiny*x; /*underflow*/ in scalbn()
49 if (k==0x7ff) return x+x; /* NaN or Inf */ in scalbn()
51 if (k > 0x7fe) return huge*copysign(huge,x); /* overflow */ in scalbn()
53 {SET_HIGH_WORD(x,(hx&0x800fffff)|(k<<20)); return x;} in scalbn()
56 return huge*copysign(huge,x); /*overflow*/ in scalbn()
[all …]
De_acosh.c41 __ieee754_acosh(double x) in __ieee754_acosh() argument
46 EXTRACT_WORDS(hx,lx,x); in __ieee754_acosh()
48 return (x-x)/(x-x); in __ieee754_acosh()
51 return x+x; in __ieee754_acosh()
53 return __ieee754_log(x)+ln2; /* acosh(huge)=log(2x) */ in __ieee754_acosh()
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()
Ds_nexttowardf.c25 nexttowardf(float x, long double y) in nexttowardf() argument
31 GET_FLOAT_WORD(hx,x); in nexttowardf()
38 return x+y; /* x or y is nan */ in nexttowardf()
39 if(x==y) return (float)y; /* x=y, return y */ in nexttowardf()
41 SET_FLOAT_WORD(x,(uy.bits.sign<<31)|1);/* return +-minsubnormal */ in nexttowardf()
42 t = x*x; in nexttowardf()
43 if(t==x) return t; else return x; /* raise underflow flag */ in nexttowardf()
45 if(hx>=0 ^ x < y) /* x -= ulp */ in nexttowardf()
50 if(ix>=0x7f800000) return x+x; /* overflow */ in nexttowardf()
52 t = x*x; in nexttowardf()
[all …]
Ds_nextafterf.c24 nextafterf(float x, float y) in nextafterf() argument
29 GET_FLOAT_WORD(hx,x); in nextafterf()
36 return x+y; in nextafterf()
37 if(x==y) return y; /* x=y, return y */ in nextafterf()
39 SET_FLOAT_WORD(x,(hy&0x80000000)|1);/* return +-minsubnormal */ in nextafterf()
40 t = x*x; in nextafterf()
41 if(t==x) return t; else return x; /* raise underflow flag */ in nextafterf()
57 if(hy>=0x7f800000) return x+x; /* overflow */ in nextafterf()
59 t = x*x; in nextafterf()
60 if(t!=x) { /* raise underflow flag */ in nextafterf()
[all …]
Ds_nexttoward.c34 nexttoward(double x, long double y) in nexttoward() argument
41 EXTRACT_WORDS(hx,lx,x); in nexttoward()
48 return x+y; /* x or y is nan */ in nexttoward()
49 if(x==y) return (double)y; /* x=y, return y */ in nexttoward()
50 if(x==0.0) { in nexttoward()
51 INSERT_WORDS(x,uy.bits.sign<<31,1); /* return +-minsubnormal */ in nexttoward()
52 t = x*x; in nexttoward()
53 if(t==x) return t; else return x; /* raise underflow flag */ in nexttoward()
55 if(hx>0.0 ^ x < y) { /* x -= ulp */ in nexttoward()
63 if(ix>=0x7ff00000) return x+x; /* overflow */ in nexttoward()
[all …]
Ds_scalbnf.c32 scalbnf (float x, int n) in scalbnf() argument
35 GET_FLOAT_WORD(ix,x); in scalbnf()
38 if ((ix&0x7fffffff)==0) return x; /* +-0 */ in scalbnf()
39 x *= two25; in scalbnf()
40 GET_FLOAT_WORD(ix,x); in scalbnf()
42 if (n< -50000) return tiny*x; /*underflow*/ in scalbnf()
44 if (k==0xff) return x+x; /* NaN or Inf */ in scalbnf()
46 if (k > 0xfe) return huge*copysignf(huge,x); /* overflow */ in scalbnf()
48 {SET_FLOAT_WORD(x,(ix&0x807fffff)|(k<<23)); return x;} in scalbnf()
51 return huge*copysignf(huge,x); /*overflow*/ in scalbnf()
[all …]
Ds_modf.c33 modf(double x, double *iptr) in modf() argument
37 EXTRACT_WORDS(i0,i1,x); in modf()
42 return x; in modf()
47 *iptr = x; in modf()
48 GET_HIGH_WORD(high,x); in modf()
49 INSERT_WORDS(x,high&0x80000000,0); /* return +-0 */ in modf()
50 return x; in modf()
53 return x - *iptr; in modf()
58 *iptr = x*one; in modf()
59 GET_HIGH_WORD(high,x); in modf()
[all …]
/bionic/libm/bsdsrc/
Db_exp.c91 double exp(x)
92 double x;
98 if(x!=x) return(x); /* x is NaN */
100 if( x <= lnhuge ) {
101 if( x >= lntiny ) {
105 k=invln2*x+copysign(0.5,x); /* k=NINT(x/ln2) */
109 hi=x-k*ln2hi;
110 x=hi-(lo=k*ln2lo);
113 z=x*x;
114 c= x - z*(p1+z*(p2+z*(p3+z*(p4+z*p5))));
[all …]
/bionic/libc/kernel/arch-arm/asm/
Dbyteorder.h18 static inline __attribute_const__ __u32 ___arch__swab32(__u32 x) in ___arch__swab32() argument
23 if (!__builtin_constant_p(x)) { in ___arch__swab32()
25 asm ("eor\t%0, %1, %1, ror #16" : "=r" (t) : "r" (x)); in ___arch__swab32()
28 t = x ^ ((x << 16) | (x >> 16)); in ___arch__swab32()
30 x = (x << 24) | (x >> 8); in ___arch__swab32()
32 x ^= (t >> 8); in ___arch__swab32()
34 return x; in ___arch__swab32()
37 #define __arch__swab32(x) ___arch__swab32(x) argument
/bionic/libc/arch-x86/include/machine/
Dasm.h61 #define PIC_PLT(x) x@PLT argument
62 #define PIC_GOT(x) x@GOT(%ebx) argument
63 #define PIC_GOTOFF(x) x@GOTOFF(%ebx) argument
67 #define PIC_PLT(x) x argument
68 #define PIC_GOT(x) x argument
69 #define PIC_GOTOFF(x) x argument
73 #define _ASM_LABEL(x) x argument
75 #define CVAROFF(x, y) _C_LABEL(x) + y argument
78 # define __CONCAT(x,y) x ## y argument
79 # define __STRING(x) #x argument
[all …]
/bionic/libc/arch-arm/include/machine/
Dasm.h42 # define _C_LABEL(x) x argument
45 # define _C_LABEL(x) _ ## x argument
47 # define _C_LABEL(x) _/**/x argument
50 #define _ASM_LABEL(x) x argument
53 # define __CONCAT(x,y) x ## y argument
54 # define __STRING(x) #x argument
56 # define __CONCAT(x,y) x/**/y argument
57 # define __STRING(x) "x" argument
72 #define _ENTRY(x) \ argument
73 .text; _ALIGN_TEXT; .globl x; .type x,_ASM_TYPE_FUNCTION; x:
[all …]
/bionic/libc/kernel/common/linux/
Da.out.h73 #define N_BADMAG(x) (N_MAGIC(x) != OMAGIC && N_MAGIC(x) != NMAGIC && N_MAGIC(x) != ZMAGIC && … argument
76 #define _N_HDROFF(x) (1024 - sizeof (struct exec)) argument
79 #define N_TXTOFF(x) (N_MAGIC(x) == ZMAGIC ? _N_HDROFF((x)) + sizeof (struct exec) : (N_MAGIC(x)… argument
83 #define N_DATOFF(x) (N_TXTOFF(x) + (x).a_text) argument
87 #define N_TRELOFF(x) (N_DATOFF(x) + (x).a_data) argument
91 #define N_DRELOFF(x) (N_TRELOFF(x) + N_TRSIZE(x)) argument
95 #define N_SYMOFF(x) (N_DRELOFF(x) + N_DRSIZE(x)) argument
99 #define N_STROFF(x) (N_SYMOFF(x) + N_SYMSIZE(x)) argument
103 #define N_TXTADDR(x) (N_MAGIC(x) == QMAGIC ? PAGE_SIZE : 0) argument
131 #define _N_SEGMENT_ROUND(x) ALIGN(x, SEGMENT_SIZE) argument
[all …]

1234567891011