Searched defs:base (Results 1 - 25 of 47) sorted by relevance

12

/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/include/
H A Dftw.h52 int base; member in struct:FTW
/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 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 Dstrtoimax.c42 strtoimax(const char *nptr, char **endptr, int base) argument
50 * Ensure that base is between 2 and 36 inclusive, or the special
53 if (base < 0 || base == 1 || base > 36) {
62 * If base is 0, allow 0x for hex and 0 for octal, else
63 * assume decimal; if base is already 16, allow 0x.
77 if ((base == 0 || base == 16) &&
81 base
[all...]
H A Dstrtol.c43 strtol(const char *nptr, char **endptr, int base) argument
51 * Ensure that base is between 2 and 36 inclusive, or the special
54 if (base < 0 || base == 1 || 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
[all...]
H A Dstrtoll.c45 strtoll(const char *nptr, char **endptr, int base) argument
53 * Ensure that base is between 2 and 36 inclusive, or the special
56 if (base < 0 || base == 1 || 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 Dstrtoul.c43 strtoul(const char *nptr, char **endptr, int base) argument
53 if (base < 0 || base == 1 || base > 36) {
72 if ((base == 0 || base == 16) &&
76 base = 16;
78 if (base == 0)
79 base = c == '0' ? 8 : 10;
81 cutoff = ULONG_MAX / (unsigned long)base;
[all...]
H A Dstrtoull.c45 strtoull(const char *nptr, char **endptr, int base) argument
55 if (base < 0 || base == 1 || base > 36) {
74 if ((base == 0 || base == 16) &&
78 base = 16;
80 if (base == 0)
81 base = c == '0' ? 8 : 10;
83 cutoff = ULLONG_MAX / (unsigned long long)base;
[all...]
H A Dstrtoumax.c42 strtoumax(const char *nptr, char **endptr, int base) argument
52 if (base < 0 || base == 1 || base > 36) {
71 if ((base == 0 || base == 16) &&
75 base = 16;
77 if (base == 0)
78 base = c == '0' ? 8 : 10;
80 cutoff = UINTMAX_MAX / (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:__anon1046
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...]
/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dfmemopen.c74 ssize_t base = 0; local
80 base = st->pos;
83 base = st->len;
87 if (off > st->size - base || off < -base) {
92 st->pos = base + off;
H A Dopen_memstream.c79 ssize_t base = 0; local
85 base = st->pos;
88 base = st->len;
92 if (off > SIZE_MAX - base || off < -base) {
97 st->pos = base + off;
H A Dopen_wmemstream.c83 ssize_t base = 0; local
89 base = st->pos;
92 base = st->len;
96 if (off > (SIZE_MAX / sizeof(wchar_t)) - base || off < -base) {
107 st->pos = base + off;
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...]
/bionic/libc/bionic/
H A Dwchar.cpp233 long long wcstoll_l(const wchar_t *nptr, wchar_t **endptr, int base, argument
235 return wcstoll(nptr, endptr, base);
239 int base, locale_t) {
240 return wcstoull(nptr, endptr, base);
238 wcstoull_l(const wchar_t *nptr, wchar_t **endptr, int base, locale_t) argument
H A Dlocale.cpp124 locale_t newlocale(int category_mask, const char* locale_name, locale_t /*base*/) {
207 long long strtoll_l(const char* s, char** end_ptr, int base, locale_t) { argument
208 return strtoll(s, end_ptr, base);
211 unsigned long long strtoull_l(const char* s, char** end_ptr, int base, locale_t) { argument
212 return strtoull(s, end_ptr, base);
/bionic/tools/relocation_packer/src/
H A Delf_file_unittest.cc66 const std::string base = std::string("elf_file_unittest_relocs_") + arch; local
67 const std::string relocs = base + ".so";
68 const std::string packed_relocs = base + "_packed.so";
/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/kernel/uapi/linux/
H A Dphonet.h64 } base; member in union:phonetmsg::__anon668
77 #define pn_submsg_id pn_msg_u.base.pn_submsg_id
81 #define pn_data pn_msg_u.base.pn_data
/bionic/libc/malloc_debug/
H A Dmalloc_debug.cpp80 int debug_iterate(uintptr_t base, size_t size,
81 void (*callback)(uintptr_t base, size_t size, void* arg), void* arg);
601 int debug_iterate(uintptr_t base, size_t size, argument
602 void (*callback)(uintptr_t base, size_t size, void* arg), void* arg) {
610 return g_dispatch->iterate(base, size,
611 [](uintptr_t base, size_t size, void* arg) {
613 const void* pointer = reinterpret_cast<void*>(base);
626 ctx->callback(base, size, ctx->arg);
/bionic/libc/upstream-openbsd/lib/libc/time/
H A Dwcsftime.c346 int base; local
352 base = TM_YEAR_BASE;
360 len = isleap_sum(year, base) ?
376 ++base;
384 --base;
385 yday += isleap_sum(year, base) ?
396 pt = _yconv(year, base, 0, 1, pt, ptlim);
398 pt = _yconv(year, base, 1, 1, pt, ptlim);
/bionic/libc/tzcode/
H A Dstrftime.c393 int base; local
399 base = TM_YEAR_BASE;
407 len = isleap_sum(year, base) ?
426 ++base;
435 --base;
436 yday += isleap_sum(year, base) ?
452 pt = _yconv(year, base,
455 } else pt = _yconv(year, base,

Completed in 1938 milliseconds

12