/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 | 55 static __inline__ void timespec_add( struct timespec* a, const struct timespec* b ) in timespec_add() argument 57 a->tv_sec += b->tv_sec; in timespec_add() 58 a->tv_nsec += b->tv_nsec; in timespec_add() 59 if (a->tv_nsec >= 1000000000) { in timespec_add() 60 a->tv_nsec -= 1000000000; in timespec_add() 61 a->tv_sec += 1; in timespec_add() 65 static __inline__ void timespec_sub( struct timespec* a, const struct timespec* b ) in timespec_sub() argument 67 a->tv_sec -= b->tv_sec; in timespec_sub() 68 a->tv_nsec -= b->tv_nsec; in timespec_sub() 69 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 …]
|
/bionic/libc/kernel/arch-mips/asm/ |
D | addrspace.h | 45 #define KSEGX(a) ((_ACAST32_ (a)) & 0xe0000000) argument 46 #define CPHYSADDR(a) ((_ACAST32_(a)) & 0x1fffffff) argument 47 #define XPHYSADDR(a) ((_ACAST64_(a)) & _CONST64_(0x000000ffffffffff)) argument 49 #define CKSEG0ADDR(a) (CPHYSADDR(a) | KSEG0) argument 50 #define CKSEG1ADDR(a) (CPHYSADDR(a) | KSEG1) argument 51 #define CKSEG2ADDR(a) (CPHYSADDR(a) | KSEG2) argument 52 #define CKSEG3ADDR(a) (CPHYSADDR(a) | KSEG3) argument 54 #define KSEG0ADDR(a) (CPHYSADDR(a) | KSEG0) argument 55 #define KSEG1ADDR(a) (CPHYSADDR(a) | KSEG1) argument 56 #define KSEG2ADDR(a) (CPHYSADDR(a) | KSEG2) argument [all …]
|
D | a.out.h | 35 #define N_TRSIZE(a) ((a).a_trsize) argument 36 #define N_DRSIZE(a) ((a).a_drsize) argument 37 #define N_SYMSIZE(a) ((a).a_syms) argument
|
D | local.h | 30 atomic_long_t a; member 34 #define local_read(l) atomic_long_read(&(l)->a) 35 #define local_set(l, i) atomic_long_set(&(l)->a, (i)) 36 #define local_add(i, l) atomic_long_add((i), (&(l)->a)) 37 #define local_sub(i, l) atomic_long_sub((i), (&(l)->a)) 39 #define local_inc(l) atomic_long_inc(&(l)->a) 40 #define local_dec(l) atomic_long_dec(&(l)->a) 41 #define local_cmpxchg(l, o, n) ((long)cmpxchg_local(&((l)->a.counter), (o), (n))) 42 #define local_xchg(l, n) (xchg_local(&((l)->a.counter), (n))) 44 …fine local_add_unless(l, a, u) ({ long c, old; c = local_read(l); while (c != (u) && (old =… argument [all …]
|
D | floppy.h | 30 #define CROSS_64KB(a, s) ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64) argument
|
D | jazzdma.h | 26 #define VDMA_PAGE(a) ((unsigned int)(a) >> 12) argument 27 #define VDMA_OFFSET(a) ((unsigned int)(a) & (VDMA_PAGESIZE-1)) 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 | 24 #define __io(a) ((void __iomem *)(PCIO_BASE + (a))) argument 25 #define __mem_pci(a) (a) argument 29 #define omap_readb(a) (*(volatile unsigned char *)IO_ADDRESS(a)) argument 30 #define omap_readw(a) (*(volatile unsigned short *)IO_ADDRESS(a)) argument 31 #define omap_readl(a) (*(volatile unsigned int *)IO_ADDRESS(a)) argument 32 #define omap_writeb(v,a) (*(volatile unsigned char *)IO_ADDRESS(a) = (v)) argument 34 #define omap_writew(v,a) (*(volatile unsigned short *)IO_ADDRESS(a) = (v)) argument 35 #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 …]
|
/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/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-x86/asm/ |
D | a.out.h | 35 #define N_TRSIZE(a) ((a).a_trsize) argument 36 #define N_DRSIZE(a) ((a).a_drsize) argument 37 #define N_SYMSIZE(a) ((a).a_syms) argument
|
D | byteorder.h | 40 struct { __u32 a,b; } s; in ___arch__swab64() member 45 v.s.a = ___arch__swab32(v.s.a); in ___arch__swab64() 47 __asm__("xchgl %0,%1" : "=r" (v.s.a), "=r" (v.s.b) : "0" (v.s.a), "1" (v.s.b)); in ___arch__swab64()
|
/bionic/libc/kernel/arch-arm/asm/ |
D | a.out.h | 37 #define N_TXTADDR(a) (0x00008000) argument 39 #define N_TRSIZE(a) ((a).a_trsize) argument 40 #define N_DRSIZE(a) ((a).a_drsize) argument 41 #define N_SYMSIZE(a) ((a).a_syms) 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/libc/kernel/common/linux/ |
D | in.h | 182 #define IN_CLASSA(a) ((((long int) (a)) & 0x80000000) == 0) argument 189 #define IN_CLASSB(a) ((((long int) (a)) & 0xc0000000) == 0x80000000) argument 195 #define IN_CLASSC(a) ((((long int) (a)) & 0xe0000000) == 0xc0000000) argument 200 #define IN_CLASSD(a) ((((long int) (a)) & 0xf0000000) == 0xe0000000) argument 201 #define IN_MULTICAST(a) IN_CLASSD(a) argument 204 #define IN_EXPERIMENTAL(a) ((((long int) (a)) & 0xf0000000) == 0xf0000000) argument 205 #define IN_BADCLASS(a) IN_EXPERIMENTAL((a)) argument 212 #define IN_LOOPBACK(a) ((((long int) (a)) & 0xff000000) == 0x7f000000) argument
|
/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/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/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/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; \
|