Home
last modified time | relevance | path

Searched refs:a (Results 1 – 25 of 198) sorted by relevance

12345678

/bionic/libc/include/netinet/
Din6.h36 #define IN6_IS_ADDR_UNSPECIFIED(a) \ argument
37 ((((a)->s6_addr32[0]) == 0) && \
38 (((a)->s6_addr32[1]) == 0) && \
39 (((a)->s6_addr32[2]) == 0) && \
40 (((a)->s6_addr32[3]) == 0))
42 #define IN6_IS_ADDR_LOOPBACK(a) \ argument
43 ((((a)->s6_addr32[0]) == 0) && \
44 (((a)->s6_addr32[1]) == 0) && \
45 (((a)->s6_addr32[2]) == 0) && \
46 (((a)->s6_addr32[3]) == ntohl(1)))
[all …]
/bionic/libc/upstream-netbsd/common/lib/libc/hash/sha1/
Dsha1.c95 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/src/
Ds_csqrtl.c60 long double a, b, rx, ry, scale, t; in csqrtl() local
62 a = creall(z); in csqrtl()
70 if (isnan(a)) { in csqrtl()
72 return (CMPLXL(a + 0.0L + t, a + 0.0L + t)); /* NaN + NaN i */ in csqrtl()
74 if (isinf(a)) { in csqrtl()
81 if (signbit(a)) in csqrtl()
82 return (CMPLXL(fabsl(b - b), copysignl(a, b))); in csqrtl()
84 return (CMPLXL(a, copysignl(b - b, b))); in csqrtl()
87 t = (a - a) / (a - a); /* raise invalid */ in csqrtl()
92 if (fabsl(a) >= THRESH || fabsl(b) >= THRESH) { in csqrtl()
[all …]
Ds_csqrt.c45 double a, b, rx, ry, scale, t; in csqrt() local
47 a = creal(z); in csqrt()
55 if (isnan(a)) { in csqrt()
57 return (CMPLX(a + 0.0L + t, a + 0.0L + t)); /* NaN + NaN i */ in csqrt()
59 if (isinf(a)) { in csqrt()
66 if (signbit(a)) in csqrt()
67 return (CMPLX(fabs(b - b), copysign(a, b))); in csqrt()
69 return (CMPLX(a, copysign(b - b, b))); in csqrt()
72 t = (a - a) / (a - a); /* raise invalid */ in csqrt()
77 if (fabs(a) >= THRESH || fabs(b) >= THRESH) { in csqrt()
[all …]
Ds_csqrtf.c41 float a, b; in csqrtf() local
43 a = creal(z); in csqrtf()
51 if (isnan(a)) { in csqrtf()
53 return (CMPLXF(a + 0.0L + t, a + 0.0L + t)); /* NaN + NaN i */ in csqrtf()
55 if (isinf(a)) { in csqrtf()
62 if (signbit(a)) in csqrtf()
63 return (CMPLXF(fabsf(b - b), copysignf(a, b))); in csqrtf()
65 return (CMPLXF(a, copysignf(b - b, b))); in csqrtf()
68 t = (a - a) / (a - a); /* raise invalid */ in csqrtf()
77 if (a >= 0) { in csqrtf()
[all …]
De_hypotf.c25 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 …]
De_hypot.c57 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 …]
De_hypotl.c51 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 …]
De_jnf.c38 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 …]
De_jn.c57 double a, b, c, s, 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/tests/libs/
Ddlext_test_library.cpp27 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-freebsd/lib/libc/stdlib/
Dqsort.c47 #define MIN(a, b) ((a) < (b) ? a : b) argument
54 swapfunc(char *a, char *b, size_t es) in swapfunc() argument
59 t = *a; in swapfunc()
60 *a++ = *b; in swapfunc()
65 #define vecswap(a, b, n) \ argument
66 if ((n) > 0) swapfunc(a, b, n)
75 med3(char *a, char *b, char *c, cmp_t *cmp, void *thunk in med3() argument
81 return CMP(thunk, a, b) < 0 ? in med3()
82 (CMP(thunk, b, c) < 0 ? b : (CMP(thunk, a, c) < 0 ? c : a )) in med3()
83 :(CMP(thunk, b, c) > 0 ? b : (CMP(thunk, a, c) < 0 ? a : c )); in med3()
[all …]
/bionic/tests/
Darpa_inet_test.cpp28 in_addr a; in TEST() local
31 a.s_addr = 0; in TEST()
32 ASSERT_EQ(1, inet_aton("127.1.2.3", &a)); in TEST()
33 ASSERT_EQ((htonl)(0x7f010203), a.s_addr); in TEST()
36 a.s_addr = 0; in TEST()
37 ASSERT_EQ(1, inet_aton("127.1.2", &a)); in TEST()
38 ASSERT_EQ((htonl)(0x7f010002), a.s_addr); in TEST()
41 a.s_addr = 0; in TEST()
42 ASSERT_EQ(1, inet_aton("127.1", &a)); in TEST()
43 ASSERT_EQ((htonl)(0x7f000001), a.s_addr); in TEST()
[all …]
Dnetinet_ether_test.cpp22 ether_addr* a = ether_aton("12:34:56:78:9a:bc"); in TEST() local
23 ASSERT_NE(nullptr, a); in TEST()
24 ASSERT_EQ(0x12, a->ether_addr_octet[0]); in TEST()
25 ASSERT_EQ(0x34, a->ether_addr_octet[1]); in TEST()
26 ASSERT_EQ(0x56, a->ether_addr_octet[2]); in TEST()
27 ASSERT_EQ(0x78, a->ether_addr_octet[3]); in TEST()
28 ASSERT_EQ(0x9a, a->ether_addr_octet[4]); in TEST()
29 ASSERT_EQ(0xbc, a->ether_addr_octet[5]); in TEST()
31 ASSERT_STREQ("12:34:56:78:9a:bc", ether_ntoa(a)); in TEST()
37 ether_addr* a = ether_aton_r("12:34:56:78:9a:Bc", &addr); in TEST() local
[all …]
Dstdatomic_test.cpp188 char a[123]; // Everything in different cache lines, member
197 three_atomics* a = reinterpret_cast<three_atomics*>(arg); in writer() local
199 atomic_store_explicit(&a->x, i, memory_order_relaxed); in writer()
200 atomic_store_explicit(&a->z, i, memory_order_relaxed); in writer()
201 atomic_store_explicit(&a->y, i, memory_order_release); in writer()
202 atomic_store_explicit(&a->x, i+1, memory_order_relaxed); in writer()
203 atomic_store_explicit(&a->z, i+1, memory_order_relaxed); in writer()
204 atomic_store_explicit(&a->y, i+1, memory_order_release); in writer()
210 three_atomics* a = reinterpret_cast<three_atomics*>(arg); in reader() local
215 yval = atomic_load_explicit(&a->y, memory_order_acquire); in reader()
[all …]
/bionic/libm/upstream-freebsd/lib/msun/bsdsrc/
Db_tgamma.c56 double a; member
133 u.a -= 1; in large_gam()
141 thi = xhi * u.a; in large_gam()
142 tlo = xlo * u.a + x * u.b; in large_gam()
147 u.a = ln2pi_hi + tlo; in large_gam()
148 u.a += thi; in large_gam()
149 u.b = thi - u.a; in large_gam()
206 r.a = (float)p; in ratfun_gam()
207 r.b = p - r.a; in ratfun_gam()
210 thi *= r.a; /* t = (z+c)^2*(P/Q) */ in ratfun_gam()
[all …]
/bionic/libc/include/sys/
Dtime.h58 #define timerclear(a) \ argument
59 ((a)->tv_sec = (a)->tv_usec = 0)
61 #define timerisset(a) \ argument
62 ((a)->tv_sec != 0 || (a)->tv_usec != 0)
64 #define timercmp(a, b, op) \ argument
65 ((a)->tv_sec == (b)->tv_sec \
66 ? (a)->tv_usec op (b)->tv_usec \
67 : (a)->tv_sec op (b)->tv_sec)
69 #define timeradd(a, b, res) \ argument
71 (res)->tv_sec = (a)->tv_sec + (b)->tv_sec; \
[all …]
/bionic/libc/upstream-netbsd/lib/libc/regex/
Dutils.h52 #define iswupper(a) isupper(a) argument
53 #define iswlower(a) islower(a) argument
54 #define iswalpha(a) isalpha(a) argument
55 #define iswalnum(a) isalnum(a) argument
56 #define towupper(a) toupper(a) argument
57 #define towlower(a) tolower(a) argument
/bionic/libc/dns/nameser/
Dns_samedomain.c55 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/libc/kernel/uapi/linux/
Din.h206 #define IN_CLASSA(a) ((((long int) (a)) & 0x80000000) == 0) argument
211 #define IN_CLASSB(a) ((((long int) (a)) & 0xc0000000) == 0x80000000) argument
216 #define IN_CLASSC(a) ((((long int) (a)) & 0xe0000000) == 0xc0000000) argument
220 #define IN_CLASSD(a) ((((long int) (a)) & 0xf0000000) == 0xe0000000) argument
221 #define IN_MULTICAST(a) IN_CLASSD(a) argument
223 #define IN_BADCLASS(a) (((long int) (a)) == (long int) 0xffffffff) argument
224 #define IN_EXPERIMENTAL(a) IN_BADCLASS((a)) argument
225 #define IN_CLASSE(a) ((((long int) (a)) & 0xf0000000) == 0xf0000000) argument
234 #define IN_LOOPBACK(a) ((((long int) (a)) & 0xff000000) == 0x7f000000) argument
/bionic/libdl/
DAndroid.bp62 // NOTE: --exclude-libs=libgcc.a makes sure that any symbols libdl.so pulls from
63 // libgcc.a are made static to libdl.so. This in turn ensures that libraries that
64 // a) pull symbols from libgcc.a and b) depend on libdl.so will not rely on libdl.so
65 // to provide those symbols, but will instead pull them from libgcc.a. Specifically,
67 // libgcc.a it uses.
72 "-Wl,--exclude-libs=libgcc.a",
73 "-Wl,--exclude-libs=libgcc_stripped.a",
74 "-Wl,--exclude-libs=libclang_rt.builtins-arm-android.a",
75 "-Wl,--exclude-libs=libclang_rt.builtins-aarch64-android.a",
76 "-Wl,--exclude-libs=libclang_rt.builtins-i686-android.a",
[all …]
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/
Dulp.c43 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);
Dsum.c36 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;
Dmisc.c169 (b, m, a) Bigint *b; int m, a; in multadd()
171 (Bigint *b, int m, int a) /* multiply by m and add a */
189 carry = a;
280 (a, b) Bigint *a, *b; in mult() argument
282 (Bigint *a, Bigint *b)
298 if (a->wds < b->wds) {
299 c = a;
300 a = b;
303 k = a->k;
304 wa = a->wds;
[all …]
/bionic/libc/kernel/uapi/asm-x86/asm/
Da.out.h31 #define N_TRSIZE(a) ((a).a_trsize) argument
32 #define N_DRSIZE(a) ((a).a_drsize) argument
33 #define N_SYMSIZE(a) ((a).a_syms) argument

12345678