Searched refs:base (Results 1 - 25 of 57) sorted by relevance

123

/bionic/libc/bionic/
H A Dstrtoll_l.cpp31 long long strtoll_l(const char *nptr, char **endptr, int base, locale_t) { argument
32 return strtoll(nptr, endptr, base);
H A Dstrtoull_l.cpp31 unsigned long long strtoull_l(const char *nptr, char **endptr, int base, argument
33 return strtoull(nptr, endptr, base);
H A Dndk_cruft.cpp141 extern "C" uintmax_t strntoumax(const char *nptr, char **endptr, int base, size_t n) { argument
160 if (base == 0) {
163 base = 16;
166 base = 8;
168 base = 10;
170 } else if (base == 16) {
176 while (p < end && (d = digitval(*p)) >= 0 && d < base) {
177 v = v*base + d;
189 extern "C" intmax_t strntoimax(const char* nptr, char** endptr, int base, size_t n) { argument
190 return (intmax_t) strntoumax(nptr, endptr, base,
[all...]
H A Dmalloc_debug_leak.cpp302 // 2. set the base pointer to be right after our header
310 void* base = g_malloc_dispatch->malloc(size); local
311 if (base != NULL) {
317 AllocationEntry* header = reinterpret_cast<AllocationEntry*>(base);
321 // now increment base to point to after our header.
323 base = reinterpret_cast<AllocationEntry*>(base) + 1;
326 return base;
473 void* base = leak_malloc(size); local
474 if (base !
[all...]
H A Dmalloc_debug_check.cpp76 void* base; // Always points to the memory allocated using malloc. member in struct:hdr_t
334 g_malloc_dispatch->free(gone->base);
351 hdr->base = hdr;
381 void* base = g_malloc_dispatch->malloc(sizeof(hdr_t) + size + sizeof(ftr_t)); local
382 if (base != NULL) {
385 uintptr_t ptr = reinterpret_cast<uintptr_t>(user(reinterpret_cast<hdr_t*>(base)));
392 hdr->base = base;
397 return base;
502 if (hdr->base !
[all...]
/bionic/libc/upstream-openbsd/lib/libc/locale/
H A D_wcstol.h49 FUNCNAME(const wchar_t *nptr, wchar_t **endptr, int base) argument
57 /* check base value */
58 if (base && (base < 2 || base > 36)) {
65 * If base is 0, allow 0x for hex and 0 for octal, else
66 * assume decimal; if base is already 16, allow 0x.
80 if ((base == 0 || base == 16) &&
84 base
[all...]
H A D_wcstoul.h48 FUNCNAME(const wchar_t *nptr, wchar_t **endptr, int base) argument
56 if (base && (base < 2 || base > 36)) {
63 * If base is 0, allow 0x for hex and 0 for octal, else
64 * assume decimal; if base is already 16, allow 0x.
78 if ((base == 0 || base == 16) &&
82 base = 16;
84 if (base
[all...]
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
H A Dstrtol.c44 strtol(const char *nptr, char **endptr, int base) argument
52 * Ensure that base is between 2 and 36 inclusive, or the special
55 if (base != 0 && (base < 2 || base > 36)) {
64 * If base is 0, allow 0x for hex and 0 for octal, else
65 * assume decimal; if base is already 16, allow 0x.
79 if ((base == 0 || base == 16) &&
83 base
[all...]
H A Dstrtoimax.c43 strtoimax(const char *nptr, char **endptr, int base) argument
52 * If base is 0, allow 0x for hex and 0 for octal, else
53 * assume decimal; if base is already 16, allow 0x.
67 if ((base == 0 || base == 16) &&
71 base = 16;
73 if (base == 0)
74 base = c == '0' ? 8 : 10;
79 * base. An input number that is greater than this value, if
84 * [-9223372036854775808..9223372036854775807] and the input base
[all...]
H A Dstrtoll.c45 strtoll(const char *nptr, char **endptr, int base) argument
54 * If base is 0, allow 0x for hex and 0 for octal, else
55 * assume decimal; if base is already 16, allow 0x.
69 if ((base == 0 || base == 16) &&
73 base = 16;
75 if (base == 0)
76 base = c == '0' ? 8 : 10;
81 * base. An input number that is greater than this value, if
86 * [-9223372036854775808..9223372036854775807] and the input base
[all...]
H A Dlsearch.c44 lsearch(const void *key, void *base, size_t *nelp, size_t width, argument
48 return(linear_base(key, base, nelp, width, compar, 1));
52 lfind(const void *key, const void *base, size_t *nelp, size_t width, argument
55 return(linear_base(key, base, nelp, width, compar, 0));
59 linear_base(const void *key, const void *base, size_t *nelp, size_t width, argument
64 end = (const char *)base + *nelp * width;
65 for (element = base; element < end; element += width)
H A Dstrtoul.c43 strtoul(const char *nptr, char **endptr, int base) argument
65 if ((base == 0 || base == 16) &&
69 base = 16;
71 if (base == 0)
72 base = c == '0' ? 8 : 10;
74 cutoff = ULONG_MAX / (unsigned long)base;
75 cutlim = ULONG_MAX % (unsigned long)base;
83 if (c >= base)
93 acc *= (unsigned long)base;
[all...]
H A Dstrtoull.c45 strtoull(const char *nptr, char **endptr, int base) argument
67 if ((base == 0 || base == 16) &&
71 base = 16;
73 if (base == 0)
74 base = c == '0' ? 8 : 10;
76 cutoff = ULLONG_MAX / (unsigned long long)base;
77 cutlim = ULLONG_MAX % (unsigned long long)base;
85 if (c >= base)
95 acc *= (unsigned long long)base;
[all...]
H A Dstrtoumax.c43 strtoumax(const char *nptr, char **endptr, int base) argument
65 if ((base == 0 || base == 16) &&
69 base = 16;
71 if (base == 0)
72 base = c == '0' ? 8 : 10;
74 cutoff = UINTMAX_MAX / (uintmax_t)base;
75 cutlim = UINTMAX_MAX % (uintmax_t)base;
83 if (c >= base)
93 acc *= (uintmax_t)base;
[all...]
/bionic/libc/upstream-openbsd/lib/libc/net/
H A Dinet_ntop.c105 struct { int base, len; } best, cur; member in struct:__anon923
118 best.base = -1;
119 cur.base = -1;
122 if (cur.base == -1)
123 cur.base = i, cur.len = 1;
127 if (cur.base != -1) {
128 if (best.base == -1 || cur.len > best.len)
130 cur.base = -1;
134 if (cur.base != -1) {
135 if (best.base
[all...]
H A Dinet_addr.c85 int base, n; local
99 val = 0; base = 10;
103 base = 16, c = *++cp;
105 base = 8;
110 val = (val * base) + (c - '0');
112 } else if (base == 16 &&
H A Dinet_network.c44 in_addr_t val, base, n; local
50 val = 0; base = 10;
52 base = 8, cp++;
54 base = 16, cp++;
57 val = (val * base) + (c - '0');
61 if (base == 16 && isxdigit(c)) {
/bionic/libc/upstream-netbsd/lib/libc/stdlib/
H A Dbsearch.c54 * the base up one item past p: e.g., when lim is 5 we change base
65 const char *base = base0; local
75 p = base + (lim >> 1) * size;
80 base = (const char *)p + size;
/bionic/libc/kernel/uapi/asm-x86/asm/
H A Dmtrr.h29 unsigned long base; member in struct:mtrr_sentry
36 unsigned long base; member in struct:mtrr_gentry
44 __u64 base; member in struct:mtrr_sentry
50 __u64 base; member in struct:mtrr_gentry
/bionic/libc/include/
H A Dftw.h52 int base; member in struct:FTW
/bionic/libc/kernel/uapi/linux/
H A Dphonet.h64 } base; member in union:phonetmsg::__anon598
77 #define pn_submsg_id pn_msg_u.base.pn_submsg_id
81 #define pn_data pn_msg_u.base.pn_data
/bionic/libc/arch-arm/bionic/
H A Dmemcpy.a9.S112 .macro cpy_line_vfp vreg, base
113 vstr \vreg, [dst, #\base]
114 vldr \vreg, [src, #\base]
115 vstr d0, [dst, #\base + 8]
116 vldr d0, [src, #\base + 8]
117 vstr d1, [dst, #\base + 16]
118 vldr d1, [src, #\base + 16]
119 vstr d2, [dst, #\base + 24]
120 vldr d2, [src, #\base + 24]
121 vstr \vreg, [dst, #\base
[all...]
/bionic/benchmarks/
H A Dbenchmark_main.cpp38 int base = 1; local
39 while (base*10 < n) {
40 base *= 10;
42 if (n < 2*base) {
43 return 2*base;
45 if (n < 5*base) {
46 return 5*base;
48 return 10*base;
/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dvfscanf.c110 int base; /* base argument to strtoimax/strtouimax */ local
127 base = 0; /* XXX just to keep gcc happy */
210 base = 10;
215 base = 0;
224 base = 8;
230 base = 10;
238 base = 16;
269 base = 16;
303 base
[all...]
H A Dvfwscanf.c113 int base; /* base argument to strtoimax/strtouimax */ local
136 base = 0; /* XXX just to keep gcc happy */
224 base = 10;
229 base = 0;
238 base = 8;
244 base = 10;
252 base = 16;
294 base = 16;
329 base
[all...]

Completed in 211 milliseconds

123