/bionic/libc/include/netinet/ |
D | in6.h | 33 #define IN6_IS_ADDR_UNSPECIFIED(a) \ argument 34 ((*(const uint32_t *)(const void *)(&(a)->s6_addr[0]) == 0) && \ 35 (*(const uint32_t *)(const void *)(&(a)->s6_addr[4]) == 0) && \ 36 (*(const uint32_t *)(const void *)(&(a)->s6_addr[8]) == 0) && \ 37 (*(const uint32_t *)(const void *)(&(a)->s6_addr[12]) == 0)) 39 #define IN6_IS_ADDR_LOOPBACK(a) \ argument 40 ((*(const uint32_t *)(const void *)(&(a)->s6_addr[0]) == 0) && \ 41 (*(const uint32_t *)(const void *)(&(a)->s6_addr[4]) == 0) && \ 42 (*(const uint32_t *)(const void *)(&(a)->s6_addr[8]) == 0) && \ 43 (*(const uint32_t *)(const void *)(&(a)->s6_addr[12]) == ntohl(1))) [all …]
|
/bionic/libc/bionic/ |
D | pthread_internal.h | 53 static __inline__ void timespec_add( struct timespec* a, const struct timespec* b ) in timespec_add() argument 55 a->tv_sec += b->tv_sec; in timespec_add() 56 a->tv_nsec += b->tv_nsec; in timespec_add() 57 if (a->tv_nsec >= 1000000000) { in timespec_add() 58 a->tv_nsec -= 1000000000; in timespec_add() 59 a->tv_sec += 1; in timespec_add() 63 static __inline__ void timespec_sub( struct timespec* a, const struct timespec* b ) in timespec_sub() argument 65 a->tv_sec -= b->tv_sec; in timespec_sub() 66 a->tv_nsec -= b->tv_nsec; in timespec_sub() 67 if (a->tv_nsec < 0) { in timespec_sub() [all …]
|
D | sha1.c | 68 void do_R01(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *); 69 void do_R2(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *); 70 void do_R3(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *); 71 void do_R4(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *); 80 do_R01(u_int32_t *a, u_int32_t *b, u_int32_t *c, u_int32_t *d, u_int32_t *e, CHAR64LONG16 *block) in do_R01() argument 82 nR0(a,b,c,d,e, 0); nR0(e,a,b,c,d, 1); nR0(d,e,a,b,c, 2); nR0(c,d,e,a,b, 3); in do_R01() 83 nR0(b,c,d,e,a, 4); nR0(a,b,c,d,e, 5); nR0(e,a,b,c,d, 6); nR0(d,e,a,b,c, 7); in do_R01() 84 nR0(c,d,e,a,b, 8); nR0(b,c,d,e,a, 9); nR0(a,b,c,d,e,10); nR0(e,a,b,c,d,11); in do_R01() 85 nR0(d,e,a,b,c,12); nR0(c,d,e,a,b,13); nR0(b,c,d,e,a,14); nR0(a,b,c,d,e,15); in do_R01() 86 nR1(e,a,b,c,d,16); nR1(d,e,a,b,c,17); nR1(c,d,e,a,b,18); nR1(b,c,d,e,a,19); in do_R01() [all …]
|
D | hash.h | 45 #define min(a,b) (((a)>(b))?(b):(a)) argument
|
/bionic/libc/include/sys/ |
D | time.h | 45 #define timerclear(a) \ argument 46 ((a)->tv_sec = (a)->tv_usec = 0) 48 #define timerisset(a) \ argument 49 ((a)->tv_sec != 0 || (a)->tv_usec != 0) 51 #define timercmp(a, b, op) \ argument 52 ((a)->tv_sec == (b)->tv_sec \ 53 ? (a)->tv_usec op (b)->tv_usec \ 54 : (a)->tv_sec op (b)->tv_sec) 56 #define timeradd(a, b, res) \ argument 58 (res)->tv_sec = (a)->tv_sec + (b)->tv_sec; \ [all …]
|
/bionic/libc/kernel/arch-arm/asm/arch/ |
D | io.h | 19 #define __io(a) ((void __iomem *)(PCIO_BASE + (a))) argument 20 #define __mem_pci(a) (a) argument 26 #define omap_readb(a) (*(volatile unsigned char *)IO_ADDRESS(a)) argument 27 #define omap_readw(a) (*(volatile unsigned short *)IO_ADDRESS(a)) argument 28 #define omap_readl(a) (*(volatile unsigned int *)IO_ADDRESS(a)) argument 30 #define omap_writeb(v,a) (*(volatile unsigned char *)IO_ADDRESS(a) = (v)) argument 31 #define omap_writew(v,a) (*(volatile unsigned short *)IO_ADDRESS(a) = (v)) argument 32 #define omap_writel(v,a) (*(volatile unsigned int *)IO_ADDRESS(a) = (v)) argument
|
/bionic/libc/stdlib/ |
D | qsort.c | 37 #define min(a, b) (a) < (b) ? a : b argument 53 #define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \ argument 57 swapfunc(char *a, char *b, int n, int swaptype) in swapfunc() argument 60 swapcode(long, a, b, n) in swapfunc() 62 swapcode(char, a, b, n) in swapfunc() 65 #define swap(a, b) \ argument 67 long t = *(long *)(a); \ 68 *(long *)(a) = *(long *)(b); \ 71 swapfunc(a, b, es, swaptype) 73 #define vecswap(a, b, n) if ((n) > 0) swapfunc(a, b, n, swaptype) argument [all …]
|
D | sha1hash.c | 132 uint32_t a, b, c, d, e; in SHA1Transform() local 146 a = state[0]; in SHA1Transform() 152 R0(a,b,c,d,e, 0); R0(e,a,b,c,d, 1); R0(d,e,a,b,c, 2); R0(c,d,e,a,b, 3); in SHA1Transform() 153 R0(b,c,d,e,a, 4); R0(a,b,c,d,e, 5); R0(e,a,b,c,d, 6); R0(d,e,a,b,c, 7); in SHA1Transform() 154 R0(c,d,e,a,b, 8); R0(b,c,d,e,a, 9); R0(a,b,c,d,e,10); R0(e,a,b,c,d,11); in SHA1Transform() 155 R0(d,e,a,b,c,12); R0(c,d,e,a,b,13); R0(b,c,d,e,a,14); R0(a,b,c,d,e,15); in SHA1Transform() 156 R1(e,a,b,c,d,16); R1(d,e,a,b,c,17); R1(c,d,e,a,b,18); R1(b,c,d,e,a,19); in SHA1Transform() 157 R2(a,b,c,d,e,20); R2(e,a,b,c,d,21); R2(d,e,a,b,c,22); R2(c,d,e,a,b,23); in SHA1Transform() 158 R2(b,c,d,e,a,24); R2(a,b,c,d,e,25); R2(e,a,b,c,d,26); R2(d,e,a,b,c,27); in SHA1Transform() 159 R2(c,d,e,a,b,28); R2(b,c,d,e,a,29); R2(a,b,c,d,e,30); R2(e,a,b,c,d,31); in SHA1Transform() [all …]
|
/bionic/libm/bsdsrc/ |
D | b_tgamma.c | 138 return(__exp__D(u.a, u.b)); 168 u.a -= one; 169 v.a = (x -= .5); 170 TRUNC(v.a); 171 v.b = x - v.a; 172 t.a = v.a*u.a; /* t = (x-.5)*(log(x)-1) */ 173 t.b = v.b*u.a + x*u.b; 176 u.a = lns2pi_hi + t.b; u.a += t.a; 177 u.b = t.a - u.a; 195 return (yy.a + yy.b); [all …]
|
/bionic/libc/kernel/arch-x86/asm/ |
D | a.out.h | 27 #define N_TRSIZE(a) ((a).a_trsize) argument 28 #define N_DRSIZE(a) ((a).a_drsize) argument 29 #define N_SYMSIZE(a) ((a).a_syms) argument
|
/bionic/libm/src/ |
D | e_hypotf.c | 26 float a=x,b=y,t1,t2,y1,y2,w; in __ieee754_hypotf() local 33 if(hb > ha) {a=y;b=x;j=ha; ha=hb;hb=j;} else {a=x;b=y;} in __ieee754_hypotf() 34 SET_FLOAT_WORD(a,ha); /* a <- |a| */ in __ieee754_hypotf() 36 if((ha-hb)>0xf000000) {return a+b;} /* x/y > 2**30 */ in __ieee754_hypotf() 40 w = a+b; /* for sNaN */ in __ieee754_hypotf() 41 if(ha == 0x7f800000) w = a; in __ieee754_hypotf() 47 SET_FLOAT_WORD(a,ha); in __ieee754_hypotf() 52 if(hb==0) return a; in __ieee754_hypotf() 55 a *= t1; in __ieee754_hypotf() 61 SET_FLOAT_WORD(a,ha); in __ieee754_hypotf() [all …]
|
D | e_hypot.c | 56 double a=x,b=y,t1,t2,y1,y2,w; in __ieee754_hypot() local 63 if(hb > ha) {a=y;b=x;j=ha; ha=hb;hb=j;} else {a=x;b=y;} in __ieee754_hypot() 64 SET_HIGH_WORD(a,ha); /* a <- |a| */ in __ieee754_hypot() 66 if((ha-hb)>0x3c00000) {return a+b;} /* x/y > 2**60 */ in __ieee754_hypot() 71 w = a+b; /* for sNaN */ in __ieee754_hypot() 72 GET_LOW_WORD(low,a); in __ieee754_hypot() 73 if(((ha&0xfffff)|low)==0) w = a; in __ieee754_hypot() 80 SET_HIGH_WORD(a,ha); in __ieee754_hypot() 87 if((hb|low)==0) return a; in __ieee754_hypot() 91 a *= t1; in __ieee754_hypot() [all …]
|
D | e_jnf.c | 34 float a, b, temp, di; in __ieee754_jnf() local 57 a = __ieee754_j0f(x); in __ieee754_jnf() 61 b = b*((float)(i+i)/x) - a; /* avoid underflow */ in __ieee754_jnf() 62 a = temp; in __ieee754_jnf() 73 for (a=one,i=2;i<=n;i++) { in __ieee754_jnf() 74 a *= (float)i; /* a = n! */ in __ieee754_jnf() 77 b = b/a; in __ieee754_jnf() 121 a = t; in __ieee754_jnf() 138 b = b/x - a; in __ieee754_jnf() 139 a = temp; in __ieee754_jnf() [all …]
|
D | e_jn.c | 58 double a, b, temp, di; in __ieee754_jn() local 103 a = __ieee754_j0(x); in __ieee754_jn() 107 b = b*((double)(i+i)/x) - a; /* avoid underflow */ in __ieee754_jn() 108 a = temp; in __ieee754_jn() 120 for (a=one,i=2;i<=n;i++) { in __ieee754_jn() 121 a *= (double)i; /* a = n! */ in __ieee754_jn() 124 b = b/a; in __ieee754_jn() 168 a = t; in __ieee754_jn() 185 b = b/x - a; in __ieee754_jn() 186 a = temp; in __ieee754_jn() [all …]
|
/bionic/libc/kernel/arch-arm/asm/ |
D | a.out.h | 30 #define N_TXTADDR(a) (0x00008000) argument 32 #define N_TRSIZE(a) ((a).a_trsize) argument 33 #define N_DRSIZE(a) ((a).a_drsize) argument 34 #define N_SYMSIZE(a) ((a).a_syms) argument
|
/bionic/libc/kernel/arch-sh/asm/ |
D | io_generic.h | 12 #define IO_CONCAT(a,b) _IO_CONCAT(a,b) argument 13 #define _IO_CONCAT(a,b) a ## _ ## b argument
|
/bionic/libc/netbsd/nameser/ |
D | ns_samedomain.c | 54 ns_samedomain(const char *a, const char *b) { in ns_samedomain() argument 59 la = strlen(a); in ns_samedomain() 63 if (la != 0U && a[la - 1] == '.') { in ns_samedomain() 67 if (a[i] == '\\') { in ns_samedomain() 104 return (strncasecmp(a, b, lb) == 0); in ns_samedomain() 123 if (a[diff - 1] != '.') in ns_samedomain() 132 if (a[i] == '\\') { in ns_samedomain() 143 cp = a + diff; in ns_samedomain() 153 ns_subdomain(const char *a, const char *b) { in ns_subdomain() argument 154 return (ns_samename(a, b) != 1 && ns_samedomain(a, b)); in ns_subdomain() [all …]
|
/bionic/libm/sparc64/ |
D | _fpmath.h | 47 #define LDBL_TO_ARRAY32(u, a) do { \ argument 48 (a)[0] = (uint32_t)(u).bits.manl; \ 49 (a)[1] = (uint32_t)((u).bits.manl >> 32); \ 50 (a)[2] = (uint32_t)(u).bits.manh; \ 51 (a)[3] = (uint32_t)((u).bits.manh >> 32); \
|
/bionic/libc/kernel/common/linux/ |
D | in.h | 169 #define IN_CLASSA(a) ((((long int) (a)) & 0x80000000) == 0) argument 175 #define IN_CLASSB(a) ((((long int) (a)) & 0xc0000000) == 0x80000000) argument 181 #define IN_CLASSC(a) ((((long int) (a)) & 0xe0000000) == 0xc0000000) argument 186 #define IN_CLASSD(a) ((((long int) (a)) & 0xf0000000) == 0xe0000000) argument 187 #define IN_MULTICAST(a) IN_CLASSD(a) argument 190 #define IN_EXPERIMENTAL(a) ((((long int) (a)) & 0xf0000000) == 0xf0000000) argument 191 #define IN_BADCLASS(a) IN_EXPERIMENTAL((a)) argument 202 #define IN_LOOPBACK(a) ((((long int) (a)) & 0xff000000) == 0x7f000000) argument
|
D | version.h | 13 #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) argument
|
/bionic/libm/alpha/ |
D | _fpmath.h | 46 #define LDBL_TO_ARRAY32(u, a) do { \ argument 47 (a)[0] = (uint32_t)(u).bits.manl; \ 48 (a)[1] = (uint32_t)(u).bits.manh; \
|
/bionic/libm/powerpc/ |
D | _fpmath.h | 46 #define LDBL_TO_ARRAY32(u, a) do { \ argument 47 (a)[0] = (uint32_t)(u).bits.manl; \ 48 (a)[1] = (uint32_t)(u).bits.manh; \
|
/bionic/libm/i386/ |
D | _fpmath.h | 46 #define LDBL_TO_ARRAY32(u, a) do { \ argument 47 (a)[0] = (uint32_t)(u).bits.manl; \ 48 (a)[1] = (uint32_t)(u).bits.manh; \
|
/bionic/libm/arm/ |
D | _fpmath.h | 52 #define LDBL_TO_ARRAY32(u, a) do { \ argument 53 (a)[0] = (uint32_t)(u).bits.manl; \ 54 (a)[1] = (uint32_t)(u).bits.manh; \
|
/bionic/libm/amd64/ |
D | _fpmath.h | 47 #define LDBL_TO_ARRAY32(u, a) do { \ argument 48 (a)[0] = (uint32_t)(u).bits.manl; \ 49 (a)[1] = (uint32_t)(u).bits.manh; \
|