/bionic/libc/include/netinet/ |
D | in6.h | 34 #define IN6_IS_ADDR_UNSPECIFIED(a) \ argument 35 ((*(const uint32_t*)(&(a)->s6_addr[0]) == 0) && \ 36 (*(const uint32_t*)(&(a)->s6_addr[4]) == 0) && \ 37 (*(const uint32_t*)(&(a)->s6_addr[8]) == 0) && \ 38 (*(const uint32_t*)(&(a)->s6_addr[12]) == 0)) 40 #define IN6_IS_ADDR_LOOPBACK(a) \ argument 41 ((*(const uint32_t*)(&(a)->s6_addr[0]) == 0) && \ 42 (*(const uint32_t*)(&(a)->s6_addr[4]) == 0) && \ 43 (*(const uint32_t*)(&(a)->s6_addr[8]) == 0) && \ 44 (*(const uint32_t*)(&(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/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/tests/ |
D | arpa_inet_test.cpp | 26 in_addr a; in TEST() local 29 a.s_addr = 0; in TEST() 30 ASSERT_EQ(1, inet_aton("127.1.2.3", &a)); in TEST() 31 ASSERT_EQ((htonl)(0x7f010203), a.s_addr); in TEST() 34 a.s_addr = 0; in TEST() 35 ASSERT_EQ(1, inet_aton("127.1.2", &a)); in TEST() 36 ASSERT_EQ((htonl)(0x7f010002), a.s_addr); in TEST() 39 a.s_addr = 0; in TEST() 40 ASSERT_EQ(1, inet_aton("127.1", &a)); in TEST() 41 ASSERT_EQ((htonl)(0x7f000001), a.s_addr); in TEST() [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/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 (CMPLX(a, t)); /* return NaN + NaN i */ in csqrt() 68 if (isinf(a)) { in csqrt() 75 if (signbit(a)) in csqrt() 76 return (CMPLX(fabs(b - b), copysign(a, b))); in csqrt() 78 return (CMPLX(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 (CMPLXL(a, t)); /* return NaN + NaN i */ in csqrtl() 68 if (isinf(a)) { in csqrtl() 75 if (signbit(a)) in csqrtl() 76 return (CMPLXL(fabsl(b - b), copysignl(a, b))); in csqrtl() 78 return (CMPLXL(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 (CMPLXF(a, t)); /* return NaN + NaN i */ in csqrtf() 59 if (isinf(a)) { in csqrtf() 66 if (signbit(a)) in csqrtf() 67 return (CMPLXF(fabsf(b - b), copysignf(a, b))); in csqrtf() 69 return (CMPLXF(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 | 38 float a, b, temp, di; in __ieee754_jnf() local 61 a = __ieee754_j0f(x); in __ieee754_jnf() 65 b = b*((float)(i+i)/x) - a; /* avoid underflow */ in __ieee754_jnf() 66 a = temp; in __ieee754_jnf() 77 for (a=one,i=2;i<=n;i++) { in __ieee754_jnf() 78 a *= (float)i; /* a = n! */ in __ieee754_jnf() 81 b = b/a; in __ieee754_jnf() 125 a = t; in __ieee754_jnf() 142 b = b/x - a; in __ieee754_jnf() 143 a = temp; in __ieee754_jnf() [all …]
|
/bionic/libc/include/sys/ |
D | time.h | 49 #define timerclear(a) \ argument 50 ((a)->tv_sec = (a)->tv_usec = 0) 52 #define timerisset(a) \ argument 53 ((a)->tv_sec != 0 || (a)->tv_usec != 0) 55 #define timercmp(a, b, op) \ argument 56 ((a)->tv_sec == (b)->tv_sec \ 57 ? (a)->tv_usec op (b)->tv_usec \ 58 : (a)->tv_sec op (b)->tv_sec) 60 #define timeradd(a, b, res) \ argument 62 (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/libc/kernel/uapi/linux/ |
D | uuid.h | 31 #define UUID_LE(a,b,c,d0,d1,d2,d3,d4,d5,d6,d7) \ argument 33 { { (a) & 0xff, ((a) >> 8) & 0xff, ((a) >> 16) & 0xff, ((a) >> 24) & 0xff, (b) & 0xff, ((b) >> 8) &… 34 #define UUID_BE(a,b,c,d0,d1,d2,d3,d4,d5,d6,d7) \ argument 36 { { ((a) >> 24) & 0xff, ((a) >> 16) & 0xff, ((a) >> 8) & 0xff, (a) & 0xff, ((b) >> 8) & 0xff, (b) &…
|
D | in.h | 242 #define IN_CLASSA(a) ((((long int) (a)) & 0x80000000) == 0) argument 249 #define IN_CLASSB(a) ((((long int) (a)) & 0xc0000000) == 0x80000000) argument 255 #define IN_CLASSC(a) ((((long int) (a)) & 0xe0000000) == 0xc0000000) argument 260 #define IN_CLASSD(a) ((((long int) (a)) & 0xf0000000) == 0xe0000000) argument 261 #define IN_MULTICAST(a) IN_CLASSD(a) argument 264 #define IN_EXPERIMENTAL(a) ((((long int) (a)) & 0xf0000000) == 0xf0000000) argument 265 #define IN_BADCLASS(a) IN_EXPERIMENTAL((a)) argument 272 #define IN_LOOPBACK(a) ((((long int) (a)) & 0xff000000) == 0x7f000000) 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/kernel/uapi/asm-x86/asm/ |
D | a.out.h | 34 #define N_TRSIZE(a) ((a).a_trsize) argument 35 #define N_DRSIZE(a) ((a).a_drsize) argument 36 #define N_SYMSIZE(a) ((a).a_syms) argument
|
/bionic/libc/kernel/uapi/asm-arm/asm/ |
D | a.out.h | 36 #define N_TXTADDR(a) (0x00008000) argument 37 #define N_TRSIZE(a) ((a).a_trsize) argument 39 #define N_DRSIZE(a) ((a).a_drsize) argument 40 #define N_SYMSIZE(a) ((a).a_syms) argument
|
/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/libdl/ |
D | Android.bp | 6 // NOTE: --exclude-libs=libgcc.a makes sure that any symbols libdl.so pulls from 7 // libgcc.a are made static to libdl.so. This in turn ensures that libraries that 8 // a) pull symbols from libgcc.a and b) depend on libdl.so will not rely on libdl.so 9 // to provide those symbols, but will instead pull them from libgcc.a. Specifically, 11 // libgcc.a it uses. 15 ldflags: ["-Wl,--exclude-libs=libgcc.a"], 17 // for x86, exclude libgcc_eh.a for the same reasons as above 32 ldflags: ["-Wl,--exclude-libs=libgcc_eh.a"], 36 ldflags: ["-Wl,--exclude-libs=libgcc_eh.a"], 51 // NOTE: libdl needs __aeabi_unwind_cpp_pr0 from libgcc.a but libgcc.a needs a [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); \
|