Home
last modified time | relevance | path

Searched refs:c (Results 1 – 25 of 156) sorted by relevance

1234567

/bionic/libc/include/
Dstdint.h109 #define INT8_C(c) c argument
110 #define INT_LEAST8_C(c) INT8_C(c) argument
111 #define INT_FAST8_C(c) INT8_C(c) argument
113 #define UINT8_C(c) c argument
114 #define UINT_LEAST8_C(c) UINT8_C(c) argument
115 #define UINT_FAST8_C(c) UINT8_C(c) argument
117 #define INT16_C(c) c argument
118 #define INT_LEAST16_C(c) INT16_C(c) argument
119 #define INT_FAST16_C(c) INT32_C(c) argument
121 #define UINT16_C(c) c argument
[all …]
/bionic/libc/stdio/
Dparsefloat.c47 unsigned char c; in parsefloat() local
61 c = *fp->_p; in parsefloat()
66 if (c == '-' || c == '+') in parsefloat()
71 switch (c) { in parsefloat()
91 (c != "nfinity"[infnanpos] && in parsefloat()
92 c != "NFINITY"[infnanpos])) in parsefloat()
103 if (c != 'A' && c != 'a') in parsefloat()
107 if (c != 'N' && c != 'n') in parsefloat()
113 if (c != '(') in parsefloat()
117 if (c == ')') { in parsefloat()
[all …]
Dvfwscanf.cpp81 wint_t c; /* character from format, or conversion */ in __vfwscanf() local
106 c = *fmt++; in __vfwscanf()
107 if (c == 0) { in __vfwscanf()
110 if (iswspace(c)) { in __vfwscanf()
111 while ((c = __fgetwc_unlock(fp)) != WEOF && iswspace(c)) in __vfwscanf()
113 if (c != WEOF) __ungetwc(c, fp); in __vfwscanf()
116 if (c != '%') goto literal; in __vfwscanf()
124 c = *fmt++; in __vfwscanf()
126 switch (c) { in __vfwscanf()
130 if (wi != c) { in __vfwscanf()
[all …]
Dvfscanf.cpp43 int c; /* character from format, or conversion */ in __svfscanf() local
64 c = *fmt++; in __svfscanf()
65 if (c == 0) return nassigned; in __svfscanf()
66 if (isspace(c)) { in __svfscanf()
70 if (c != '%') goto literal; in __svfscanf()
78 c = *fmt++; in __svfscanf()
80 switch (c) { in __svfscanf()
84 if (*fp->_p != c) goto match_failure; in __svfscanf()
137 width = width * 10 + c - '0'; in __svfscanf()
145 c = CT_INT; in __svfscanf()
[all …]
/bionic/libm/
DAndroid.bp32 tidy_disabled_srcs: ["upstream-*/**/*.c"],
34 "upstream-freebsd/lib/msun/bsdsrc/b_tgamma.c",
35 "upstream-freebsd/lib/msun/src/catrig.c",
36 "upstream-freebsd/lib/msun/src/catrigf.c",
37 "upstream-freebsd/lib/msun/src/e_acos.c",
38 "upstream-freebsd/lib/msun/src/e_acosf.c",
39 "upstream-freebsd/lib/msun/src/e_acosh.c",
40 "upstream-freebsd/lib/msun/src/e_acoshf.c",
41 "upstream-freebsd/lib/msun/src/e_asin.c",
42 "upstream-freebsd/lib/msun/src/e_asinf.c",
[all …]
/bionic/libc/upstream-netbsd/common/lib/libc/hash/sha1/
Dsha1.c84 uint8_t c[64]; member
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()
[all …]
/bionic/libc/dns/resolv/
Dres_comp.c157 #define hyphenchar(c) ((c) == 0x2d) argument
158 #define bslashchar(c) ((c) == 0x5c) argument
159 #define periodchar(c) ((c) == PERIOD) argument
160 #define asterchar(c) ((c) == 0x2a) argument
161 #define alphachar(c) (((c) >= 0x41 && (c) <= 0x5a) \ argument
162 || ((c) >= 0x61 && (c) <= 0x7a))
163 #define digitchar(c) ((c) >= 0x30 && (c) <= 0x39) argument
164 #define underscorechar(c) ((c) == 0x5f) argument
166 #define borderchar(c) (alphachar(c) || digitchar(c)) argument
167 #define middlechar(c) (borderchar(c) || hyphenchar(c) || underscorechar(c)) argument
[all …]
/bionic/libc/upstream-netbsd/lib/libc/inet/
Dnsap_addr.c53 xtob(int c) { in __weak_alias()
54 return (c - (((c >= '0') && (c <= '9')) ? '0' : '7')); in __weak_alias()
59 u_char c, nib; in inet_nsap_addr() local
69 while ((c = *ascii++) != '\0' && len < (u_int)maxlen) { in inet_nsap_addr()
70 if (c == '.' || c == '+' || c == '/') in inet_nsap_addr()
72 if (!isascii(c)) in inet_nsap_addr()
74 if (islower(c)) in inet_nsap_addr()
75 c = toupper(c); in inet_nsap_addr()
76 if (isxdigit(c)) { in inet_nsap_addr()
77 nib = xtob(c); in inet_nsap_addr()
[all …]
/bionic/libc/bionic/
Dwctype.cpp84 int iswalnum_l(wint_t c, locale_t) { return iswalnum(c); } in iswalnum_l() argument
85 int iswalpha_l(wint_t c, locale_t) { return iswalpha(c); } in iswalpha_l() argument
86 int iswblank_l(wint_t c, locale_t) { return iswblank(c); } in iswblank_l() argument
87 int iswcntrl_l(wint_t c, locale_t) { return iswcntrl(c); } in iswcntrl_l() argument
88 int iswdigit_l(wint_t c, locale_t) { return iswdigit(c); } in iswdigit_l() argument
89 int iswgraph_l(wint_t c, locale_t) { return iswgraph(c); } in iswgraph_l() argument
90 int iswlower_l(wint_t c, locale_t) { return iswlower(c); } in iswlower_l() argument
91 int iswprint_l(wint_t c, locale_t) { return iswprint(c); } in iswprint_l() argument
92 int iswpunct_l(wint_t c, locale_t) { return iswpunct(c); } in iswpunct_l() argument
93 int iswspace_l(wint_t c, locale_t) { return iswspace(c); } in iswspace_l() argument
[all …]
Dstrtol.cpp48 int c; in StrToI() local
49 while (isspace(c = *p++)) { in StrToI()
52 if (c == '-') { in StrToI()
54 c = *p++; in StrToI()
55 } else if (c == '+') { in StrToI()
56 c = *p++; in StrToI()
60 if ((base == 0 || base == 16) && c == '0' && (*p == 'x' || *p == 'X') && isxdigit(p[1])) { in StrToI()
61 c = p[1]; in StrToI()
66 if ((base == 0 || base == 2) && c == '0' && (*p == 'b' || *p == 'B') && isdigit(p[1])) { in StrToI()
67 c = p[1]; in StrToI()
[all …]
Dpthread_exit.cpp52 void __pthread_cleanup_push(__pthread_cleanup_t* c, __pthread_cleanup_func_t routine, void* arg) { in __pthread_cleanup_push() argument
54 c->__cleanup_routine = routine; in __pthread_cleanup_push()
55 c->__cleanup_arg = arg; in __pthread_cleanup_push()
56 c->__cleanup_prev = thread->cleanup_stack; in __pthread_cleanup_push()
57 thread->cleanup_stack = c; in __pthread_cleanup_push()
61 void __pthread_cleanup_pop(__pthread_cleanup_t* c, int execute) { in __pthread_cleanup_pop() argument
63 thread->cleanup_stack = c->__cleanup_prev; in __pthread_cleanup_pop()
65 c->__cleanup_routine(c->__cleanup_arg); in __pthread_cleanup_pop()
79 __pthread_cleanup_t* c = thread->cleanup_stack; in pthread_exit() local
80 thread->cleanup_stack = c->__cleanup_prev; in pthread_exit()
[all …]
/bionic/tests/
Diconv_test.cpp40 iconv_t c; in TEST() local
41 ASSERT_NE(INVALID_ICONV_T, c = iconv_open("UTF-8", "utf8")); in TEST()
42 ASSERT_EQ(0, iconv_close(c)); in TEST()
43 ASSERT_NE(INVALID_ICONV_T, c = iconv_open("UTF-8", "u.t.f-008")); in TEST()
44 ASSERT_EQ(0, iconv_close(c)); in TEST()
59 iconv_t c = iconv_open("UTF-32LE", "UTF-8"); in TEST() local
60 ASSERT_NE(INVALID_ICONV_T, c); in TEST()
68 EXPECT_EQ(0U, iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
78 ASSERT_EQ(0, iconv_close(c)); in TEST()
85 iconv_t c = iconv_open("ASCII//TRANSLIT", "UTF-8"); in TEST() local
[all …]
Dsyslog_test.cpp80 for (auto c = array; c->c_name != nullptr; c++) { in by_name() local
81 if (!strcmp(c->c_name, name)) return c->c_val; in by_name()
87 for (auto c = array; c->c_name != nullptr; c++) { in by_value() local
88 if (c->c_val == value) return c->c_name; in by_value()
/bionic/libc/upstream-openbsd/lib/libc/gdtoa/
Dsum.c41 Bigint *c; local
48 c = b; b = a; a = c;
50 c = Balloc(a->k);
51 if (c == NULL)
53 c->wds = a->wds;
57 xc = c->x;
91 if (c->wds == c->maxwds) {
92 b = Balloc(c->k + 1);
95 Bcopy(b, c);
96 Bfree(c);
[all …]
Dsmisc.c129 int c, d; local
133 if ((c = *++s) >= 'A' && c <= 'Z')
134 c += 'a' - 'A';
135 if (c != d)
145 copybits(c, n, b) ULong *c; int n; Bigint *b; in copybits() argument
147 copybits(ULong *c, int n, Bigint *b)
155 ce = c + ((n-1) >> kshift) + 1;
160 *c++ = *x++;
165 Storeinc(c, x[1], x[0]);
167 *c++ = *x;
[all …]
/bionic/libc/arch-riscv64/string/
Dmemset.c46 #define WIDEVAL c
52 u_long c; in memset_gc() local
80 if ((c = (u_char)c0) != 0) { /* Fill the word. */ in memset_gc()
81 c = (c << 8) | c; /* u_long is 16 bits. */ in memset_gc()
82 c = (c << 16) | c; /* u_long is 32 bits. */ in memset_gc()
83 c = (c << 32) | c; /* u_long is 64 bits. */ in memset_gc()
/bionic/libc/async_safe/
Dasync_safe_log.cpp259 char c; in out_vformat() local
265 c = format[mm]; in out_vformat()
266 if (c == '\0' || c == '%') break; in out_vformat()
276 if (c == '\0') break; in out_vformat()
283 c = format[nn++]; in out_vformat()
284 if (c == '\0') { /* single trailing '%' ? */ in out_vformat()
285 c = '%'; in out_vformat()
286 o.Send(&c, 1); in out_vformat()
288 } else if (c == '0') { in out_vformat()
291 } else if (c == '-') { in out_vformat()
[all …]
/bionic/libm/upstream-freebsd/lib/msun/src/
Ds_cospi.c79 double ax, c; in cospi() local
96 c = __kernel_sinpi(0.5 - ax); in cospi()
100 c = -__kernel_sinpi(ax - 0.5); in cospi()
102 c = -__kernel_cospi(1 - ax); in cospi()
103 return (c); in cospi()
113 c = ix == 0 ? 1 : __kernel_cospi(ax); in cospi()
115 c = __kernel_sinpi(0.5 - ax); in cospi()
120 c = -__kernel_sinpi(ax - 0.5); in cospi()
122 c = -__kernel_cospi(1 - ax); in cospi()
128 return (j0 & 1 ? -c : c); in cospi()
/bionic/linker/
Dlinked_list_test.cpp63 list.for_each([&] (const char* c) { in test_list_to_string() argument
64 ss << c; in test_list_to_string()
90 list.remove_if([] (const char* c) { in TEST() argument
91 return *c == 'c'; in TEST()
99 list.remove_if([] (const char* c) { in TEST() argument
100 return *c == '2'; in TEST()
137 list.remove_if([](const char* c) { in TEST() argument
138 return *c == 'b' || *c == 'c'; in TEST()
156 list.remove_if([](const char* c) { in TEST() argument
157 return *c == 'c' || *c == 'd'; in TEST()
[all …]
/bionic/libc/upstream-openbsd/lib/libc/crypt/
Dchacha_private.h40 #define ROTATE(v,c) (ROTL32(v,c)) argument
45 #define QUARTERROUND(a,b,c,d) \ argument
47 c = PLUS(c,d); b = ROTATE(XOR(b,c),12); \
49 c = PLUS(c,d); b = ROTATE(XOR(b,c), 7);
89 chacha_encrypt_bytes(chacha_ctx *x,const u8 *m,u8 *c,u32 bytes) in chacha_encrypt_bytes() argument
120 ctarget = c; in chacha_encrypt_bytes()
121 c = tmp; in chacha_encrypt_bytes()
191 U32TO8_LITTLE(c + 0,x0); in chacha_encrypt_bytes()
192 U32TO8_LITTLE(c + 4,x1); in chacha_encrypt_bytes()
193 U32TO8_LITTLE(c + 8,x2); in chacha_encrypt_bytes()
[all …]
/bionic/tools/versioner/tests/multiple_definition/
Dexpected_fail2c, fob = 32], arm-9 [c, fob = 64], arm-12 [c, fob = 32], arm-12 [c, fob = 64], arm-9 [c++, fob = 3…
/bionic/libc/include/bits/fortify/
Dstring.h129 void* _Nonnull memset(void* _Nonnull const s __pass_object_size0, int c, size_t n) __overloadable in memset() argument
132 __clang_warning_if(c && !n, "'memset' will set 0 bytes; maybe the arguments got flipped?") { in memset()
134 return __builtin___memset_chk(s, c, n, __bos0(s)); in memset()
136 return __builtin_memset(s, c, n); in memset()
142 void* _Nullable memchr(const void* _Nonnull const s __pass_object_size, int c, size_t n) __overload… in memchr() argument
146 return __builtin_memchr(s, c, n); in memchr()
149 return __memchr_chk(s, c, n, bos); in memchr()
153 void* _Nullable __memrchr_fortify(const void* _Nonnull const __pass_object_size s, int c, size_t n)… in __memrchr_fortify() argument
157 return __memrchr_real(s, c, n); in __memrchr_fortify()
160 return __memrchr_chk(s, c, n, bos); in __memrchr_fortify()
[all …]
/bionic/libc/dns/nameser/
Dns_name.c102 u_char c; in ns_name_ntop() local
148 c = *cp++; in ns_name_ntop()
149 if (special(c)) { in ns_name_ntop()
155 *dn++ = (char)c; in ns_name_ntop()
156 } else if (!printable(c)) { in ns_name_ntop()
162 *dn++ = digits[c / 100]; in ns_name_ntop()
163 *dn++ = digits[(c % 100) / 10]; in ns_name_ntop()
164 *dn++ = digits[c % 10]; in ns_name_ntop()
170 *dn++ = (char)c; in ns_name_ntop()
223 int c, n, escaped, e = 0; in ns_name_pton2() local
[all …]
/bionic/libc/
DAndroid.bp114 tidy_disabled_srcs: ["upstream-*/**/*.c"],
176 srcs: ["arch-arm64/bionic/__set_tls.c"],
179 srcs: ["arch-riscv64/bionic/__set_tls.c"],
189 srcs: ["arch-x86_64/bionic/__set_tls.c"],
241 "tzcode/**/*.c",
245 "upstream-openbsd/lib/libc/locale/_def_time.c",
247 "upstream-freebsd/lib/libc/locale/wcsftime.c",
291 "dns/**/*.c*",
293 "upstream-netbsd/lib/libc/isc/ev_streams.c",
294 "upstream-netbsd/lib/libc/isc/ev_timers.c",
[all …]
/bionic/libc/upstream-openbsd/lib/libc/string/
Dstrtok.c45 int c, sc; in strtok_r() local
55 c = *s++; in strtok_r()
57 if (c == sc) in strtok_r()
61 if (c == 0) { /* no non-delimiter characters */ in strtok_r()
72 c = *s++; in strtok_r()
75 if ((sc = *spanp++) == c) { in strtok_r()
76 if (c == 0) in strtok_r()

1234567