/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/tests/libs/ |
D | dlext_test_library.cpp | 27 A a; variable 31 #define A_16 &a, &a, &a, &a, &a, &a, &a, &a, &a, &a, &a, &a, &a, &a, &a, &a,
|
/bionic/libc/upstream-netbsd/common/lib/libc/hash/sha1/ |
D | sha1.c | 95 void do_R01(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d, uint32_t *e, CHAR64LONG16 *); 96 void do_R2(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d, uint32_t *e, CHAR64LONG16 *); 97 void do_R3(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d, uint32_t *e, CHAR64LONG16 *); 98 void do_R4(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d, uint32_t *e, CHAR64LONG16 *); 107 do_R01(uint32_t *a, uint32_t *b, uint32_t *c, uint32_t *d, uint32_t *e, CHAR64LONG16 *block) in do_R01() argument 109 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() 110 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() 111 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() 112 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() 113 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/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 …]
|
D | param.h | 45 #define MIN(a,b) (((a)<(b))?(a):(b)) argument 46 #define MAX(a,b) (((a)>(b))?(a):(b)) argument
|
/bionic/libm/upstream-freebsd/lib/msun/bsdsrc/ |
D | b_tgamma.c | 138 return(__exp__D(u.a, u.b)); 145 u.a = one - tiny; /* raise inexact */ 167 u.a -= one; 168 v.a = (x -= .5); 169 TRUNC(v.a); 170 v.b = x - v.a; 171 t.a = v.a*u.a; /* t = (x-.5)*(log(x)-1) */ 172 t.b = v.b*u.a + x*u.b; 175 u.a = lns2pi_hi + t.b; u.a += t.a; 176 u.b = t.a - u.a; [all …]
|
/bionic/libm/upstream-freebsd/lib/msun/src/ |
D | s_csqrt.c | 52 double a, b; in csqrt() local 56 a = creal(z); in csqrt() 64 if (isnan(a)) { in csqrt() 66 return (cpack(a, t)); /* return NaN + NaN i */ in csqrt() 68 if (isinf(a)) { in csqrt() 75 if (signbit(a)) in csqrt() 76 return (cpack(fabs(b - b), copysign(a, b))); in csqrt() 78 return (cpack(a, copysign(b - b, b))); in csqrt() 86 if (fabs(a) >= THRESH || fabs(b) >= THRESH) { in csqrt() 87 a *= 0.25; in csqrt() [all …]
|
D | s_csqrtl.c | 52 long double a, b; in csqrtl() local 56 a = creall(z); in csqrtl() 64 if (isnan(a)) { in csqrtl() 66 return (cpackl(a, t)); /* return NaN + NaN i */ in csqrtl() 68 if (isinf(a)) { in csqrtl() 75 if (signbit(a)) in csqrtl() 76 return (cpackl(fabsl(b - b), copysignl(a, b))); in csqrtl() 78 return (cpackl(a, copysignl(b - b, b))); in csqrtl() 86 if (fabsl(a) >= THRESH || fabsl(b) >= THRESH) { in csqrtl() 87 a *= 0.25; in csqrtl() [all …]
|
D | s_csqrtf.c | 47 float a = crealf(z), b = cimagf(z); in csqrtf() local 55 if (isnan(a)) { in csqrtf() 57 return (cpackf(a, t)); /* return NaN + NaN i */ in csqrtf() 59 if (isinf(a)) { in csqrtf() 66 if (signbit(a)) in csqrtf() 67 return (cpackf(fabsf(b - b), copysignf(a, b))); in csqrtf() 69 return (cpackf(a, copysignf(b - b, b))); in csqrtf() 81 if (a >= 0) { in csqrtf() 82 t = sqrt((a + hypot(a, b)) * 0.5); in csqrtf() 85 t = sqrt((-a + hypot(a, b)) * 0.5); in csqrtf()
|
D | e_hypotf.c | 25 float a,b,t1,t2,y1,y2,w; in __ieee754_hypotf() local 32 if(hb > ha) {a=y;b=x;j=ha; ha=hb;hb=j;} else {a=x;b=y;} in __ieee754_hypotf() 33 a = fabsf(a); in __ieee754_hypotf() 35 if((ha-hb)>0xf000000) {return a+b;} /* x/y > 2**30 */ 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() 66 w = a-b; in __ieee754_hypotf() [all …]
|
D | e_hypot.c | 57 double a,b,t1,t2,y1,y2,w; in __ieee754_hypot() local 64 if(hb > ha) {a=y;b=x;j=ha; ha=hb;hb=j;} else {a=x;b=y;} in __ieee754_hypot() 65 a = fabs(a); in __ieee754_hypot() 67 if((ha-hb)>0x3c00000) {return a+b;} /* x/y > 2**60 */ in __ieee754_hypot() 74 GET_LOW_WORD(low,a); in __ieee754_hypot() 75 if(((ha&0xfffff)|low)==0) w = a; in __ieee754_hypot() 82 SET_HIGH_WORD(a,ha); in __ieee754_hypot() 89 if((hb|low)==0) return a; in __ieee754_hypot() 93 a *= t1; in __ieee754_hypot() 99 SET_HIGH_WORD(a,ha); in __ieee754_hypot() [all …]
|
D | e_hypotl.c | 51 long double a=x,b=y,t1,t2,y1,y2,w; in hypotl() local 58 if(hb > ha) {a=y;b=x;j=ha; ha=hb;hb=j;} else {a=x;b=y;} in hypotl() 59 a = fabsl(a); in hypotl() 61 if((ha-hb)>DESW(MANT_DIG+7)) {return a+b;} /* x/y > 2**(MANT_DIG+7) */ in hypotl() 68 GET_LDBL_MAN(manh,manl,a); in hypotl() 69 if (manh == LDBL_NBIT && manl == 0) w = a; in hypotl() 77 SET_HIGH_WORD(a,ha); in hypotl() 84 if((manh|manl)==0) return a; in hypotl() 88 a *= t1; in hypotl() 94 SET_HIGH_WORD(a,ha); in hypotl() [all …]
|
D | e_jnf.c | 32 float a, b, temp, di; in __ieee754_jnf() local 55 a = __ieee754_j0f(x); in __ieee754_jnf() 59 b = b*((float)(i+i)/x) - a; /* avoid underflow */ in __ieee754_jnf() 60 a = temp; in __ieee754_jnf() 71 for (a=one,i=2;i<=n;i++) { in __ieee754_jnf() 72 a *= (float)i; /* a = n! */ in __ieee754_jnf() 75 b = b/a; in __ieee754_jnf() 119 a = t; in __ieee754_jnf() 136 b = b/x - a; in __ieee754_jnf() 137 a = temp; in __ieee754_jnf() [all …]
|
D | e_jn.c | 57 double a, b, temp, di; in __ieee754_jn() local 102 a = __ieee754_j0(x); in __ieee754_jn() 106 b = b*((double)(i+i)/x) - a; /* avoid underflow */ in __ieee754_jn() 107 a = temp; in __ieee754_jn() 119 for (a=one,i=2;i<=n;i++) { in __ieee754_jn() 120 a *= (double)i; /* a = n! */ in __ieee754_jn() 123 b = b/a; in __ieee754_jn() 167 a = t; in __ieee754_jn() 184 b = b/x - a; in __ieee754_jn() 185 a = temp; in __ieee754_jn() [all …]
|
/bionic/libc/upstream-freebsd/lib/libc/stdlib/ |
D | qsort.c | 46 #define min(a, b) (a) < (b) ? a : b argument 62 #define SWAPINIT(a, es) swaptype = ((char *)a - (char *)0) % sizeof(long) || \ argument 66 swapfunc(a, b, n, swaptype) in swapfunc() argument 67 char *a, *b; in swapfunc() 71 swapcode(long, a, b, n) 73 swapcode(char, a, b, n) 76 #define swap(a, b) \ argument 78 long t = *(long *)(a); \ 79 *(long *)(a) = *(long *)(b); \ 82 swapfunc(a, b, es, swaptype) [all …]
|
/bionic/libc/kernel/uapi/linux/ |
D | uuid.h | 31 #define UUID_LE(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7) ((uuid_le) {{ (a) & 0xff, ((a) >> 8) & 0… argument 32 #define UUID_BE(a, b, c, d0, d1, d2, d3, d4, d5, d6, d7) ((uuid_be) {{ ((a) >> 24) & 0xff, ((a) >… argument
|
D | in.h | 222 #define IN_CLASSA(a) ((((long int) (a)) & 0x80000000) == 0) argument 229 #define IN_CLASSB(a) ((((long int) (a)) & 0xc0000000) == 0x80000000) argument 235 #define IN_CLASSC(a) ((((long int) (a)) & 0xe0000000) == 0xc0000000) argument 240 #define IN_CLASSD(a) ((((long int) (a)) & 0xf0000000) == 0xe0000000) argument 241 #define IN_MULTICAST(a) IN_CLASSD(a) argument 244 #define IN_EXPERIMENTAL(a) ((((long int) (a)) & 0xf0000000) == 0xf0000000) argument 245 #define IN_BADCLASS(a) IN_EXPERIMENTAL((a)) argument 252 #define IN_LOOPBACK(a) ((((long int) (a)) & 0xff000000) == 0x7f000000) argument
|
/bionic/libc/kernel/uapi/asm-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
|
/bionic/libc/kernel/uapi/asm-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/upstream-openbsd/lib/libc/gdtoa/ |
D | ulp.c | 43 U a; local 52 word0(&a) = L; 53 word1(&a) = 0; 59 word0(&a) = 0x80000 >> L; 60 word1(&a) = 0; 63 word0(&a) = 0; 65 word1(&a) = L >= 31 ? 1 : 1 << (31 - L); 69 return dval(&a);
|
D | sum.c | 36 sum(a, b) Bigint *a; Bigint *b; in sum() argument 38 sum(Bigint *a, Bigint *b) 47 if (a->wds < b->wds) { 48 c = b; b = a; a = c; 50 c = Balloc(a->k); 53 c->wds = a->wds; 55 xa = a->x; 68 xe += a->wds - b->wds; 83 xe += a->wds - b->wds;
|
/bionic/libc/dns/nameser/ |
D | ns_samedomain.c | 55 ns_samedomain(const char *a, const char *b) { in ns_samedomain() argument 60 la = strlen(a); in ns_samedomain() 64 if (la != 0U && a[la - 1] == '.') { in ns_samedomain() 68 if (a[i - 1] == '\\') { in ns_samedomain() 105 return (strncasecmp(a, b, lb) == 0); in ns_samedomain() 124 if (a[diff - 1] != '.') in ns_samedomain() 133 if (a[i - 1] == '\\') { in ns_samedomain() 144 cp = a + diff; in ns_samedomain() 152 ns_subdomain(const char *a, const char *b) { in ns_subdomain() argument 153 return (ns_samename(a, b) != 1 && ns_samedomain(a, b)); in ns_subdomain() [all …]
|
/bionic/tests/ |
D | arpa_inet_test.cpp | 26 in_addr a; in TEST() local 27 ASSERT_EQ(1, inet_aton("127.0.0.1", &a)); in TEST() 28 ASSERT_EQ((htonl)(0x7f000001), a.s_addr); in TEST() 32 in_addr a = { htonl(0x12345678) }; in TEST() local 33 ASSERT_EQ(0x00345678U, inet_lnaof(a)); in TEST() 37 in_addr a = inet_makeaddr(0x12U, 0x345678); in TEST() local 38 ASSERT_EQ((htonl)(0x12345678), a.s_addr); in TEST() 42 in_addr a = { htonl(0x12345678) }; in TEST() local 43 ASSERT_EQ(0x12U, inet_netof(a)); in TEST() 51 in_addr a = { (htonl)(0x7f000001) }; in TEST() local [all …]
|
/bionic/libc/include/machine/ |
D | ieee.h | 98 #define EXT_TO_ARRAY32(p, a) do { \ argument 99 (a)[0] = (uint32_t)(p)->ext_fracl; \ 100 (a)[1] = (uint32_t)(p)->ext_fraclm; \ 101 (a)[2] = (uint32_t)(p)->ext_frachm; \ 102 (a)[3] = (uint32_t)(p)->ext_frach; \
|
/bionic/libm/ |
D | fpmath.h | 87 #define LDBL_TO_ARRAY32(u, a) do { \ argument 88 (a)[0] = (uint32_t)(u).bits.manl; \ 89 (a)[1] = (uint32_t)((u).bits.manl >> 32); \ 90 (a)[2] = (uint32_t)(u).bits.manh; \ 91 (a)[3] = (uint32_t)((u).bits.manh >> 32); \
|