Home
last modified time | relevance | path

Searched refs:base (Results 1 – 25 of 37) sorted by relevance

12

/bionic/libc/stdlib/
Dstrtol.c44 strtol(const char *nptr, char **endptr, int base) in strtol() argument
68 if ((base == 0 || base == 16) && in strtol()
72 base = 16; in strtol()
74 if (base == 0) in strtol()
75 base = c == '0' ? 8 : 10; in strtol()
95 cutlim = cutoff % base; in strtol()
96 cutoff /= base; in strtol()
99 cutlim -= base; in strtol()
111 if (c >= base) in strtol()
122 acc *= base; in strtol()
[all …]
Dstrtoumax.c43 strtoumax(const char *nptr, char **endptr, int base) in strtoumax() argument
65 if ((base == 0 || base == 16) && in strtoumax()
69 base = 16; in strtoumax()
71 if (base == 0) in strtoumax()
72 base = c == '0' ? 8 : 10; in strtoumax()
80 switch (base) { in strtoumax()
85 cutoff = UINTMAX_MAX / base; in strtoumax()
86 cutlim = UINTMAX_MAX % base; in strtoumax()
96 if (c >= base) in strtoumax()
106 acc *= (uintmax_t)base; in strtoumax()
Dstrtoul.c43 strtoul(const char *nptr, char **endptr, int base) in strtoul() argument
65 if ((base == 0 || base == 16) && in strtoul()
69 base = 16; in strtoul()
71 if (base == 0) in strtoul()
72 base = c == '0' ? 8 : 10; in strtoul()
74 cutoff = ULONG_MAX / (unsigned long)base; in strtoul()
75 cutlim = ULONG_MAX % (unsigned long)base; in strtoul()
83 if (c >= base) in strtoul()
93 acc *= (unsigned long)base; in strtoul()
Dstrtoimax.c43 strtoimax(const char *nptr, char **endptr, int base) in strtoimax() argument
67 if ((base == 0 || base == 16) && in strtoimax()
71 base = 16; in strtoimax()
73 if (base == 0) in strtoimax()
74 base = c == '0' ? 8 : 10; in strtoimax()
107 switch (base) { in strtoimax()
123 cutlim = cutoff % base; in strtoimax()
124 cutoff /= base; in strtoimax()
130 cutlim -= base; in strtoimax()
142 if (c >= base) in strtoimax()
[all …]
Dstrntoumax.c49 strntoumax(const char *nptr, char **endptr, int base, size_t n) in strntoumax() argument
70 if ( base == 0 ) { in strntoumax()
73 base = 16; in strntoumax()
76 base = 8; in strntoumax()
78 base = 10; in strntoumax()
80 } else if ( base == 16 ) { in strntoumax()
86 while ( p < end && (d = digitval(*p)) >= 0 && d < base ) { in strntoumax()
87 v = v*base + d; in strntoumax()
Dstrtoll.c46 strtoll(const char *nptr, char **endptr, int base) in strtoll() argument
48 return strtoimax(nptr, endptr, base); in strtoll()
Dstrtoull.c46 strtoull(const char *nptr, char **endptr, int base) in strtoull() argument
48 return (unsigned long long)strtoumax(nptr, endptr, base); in strtoull()
Dbsearch.c52 const char *base = base0; in bsearch() local
57 p = base + (lim >> 1) * size; in bsearch()
60 base = (char *)p + size; in bsearch()
Dstrntoimax.c31 intmax_t strntoimax(const char *nptr, char **endptr, int base, size_t n) in strntoimax() argument
33 return (intmax_t) strntoumax(nptr, endptr, base, n); in strntoimax()
/bionic/libc/inet/
Dinet_ntop.c105 struct { int base, len; } best, cur; in inet_ntop6() member
118 best.base = -1; in inet_ntop6()
120 cur.base = -1; in inet_ntop6()
124 if (cur.base == -1) in inet_ntop6()
125 cur.base = i, cur.len = 1; in inet_ntop6()
129 if (cur.base != -1) { in inet_ntop6()
130 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
132 cur.base = -1; in inet_ntop6()
136 if (cur.base != -1) { in inet_ntop6()
137 if (best.base == -1 || cur.len > best.len) in inet_ntop6()
[all …]
Dinet_aton.c71 int base, n; in inet_aton() local
85 val = 0; base = 10; in inet_aton()
89 base = 16, c = *++cp; in inet_aton()
91 base = 8; in inet_aton()
95 val = (val * base) + (c - '0'); in inet_aton()
97 } else if (base == 16 && isascii(c) && isxdigit(c)) { in inet_aton()
Dinet_pton.c109 u_int digit, base; in inet_pton4() local
127 val = 0; base = 10; in inet_pton4()
131 base = 16, c = *++src; in inet_pton4()
133 base = 8; in inet_pton4()
136 if (pton && base != 10) in inet_pton4()
141 if (digit >= base) in inet_pton4()
143 val = (val * base) + digit; in inet_pton4()
145 } else if (base == 16 && isxdigit(c)) { in inet_pton4()
/bionic/linker/
Dlinker.c174 map->l_addr = info->base; in insert_soinfo_into_debug_map()
330 if((addr >= si->base) && (addr < (si->base + si->size))) { in addr_to_name()
359 if ((addr >= si->base) && (addr < (si->base + si->size))) { in dl_unwind_find_exidx()
361 return (_Unwind_Ptr)(si->base + (unsigned long)si->ARM_exidx); in dl_unwind_find_exidx()
400 name, si->name, si->base, hash, hash % si->nbucket); in _elf_lookup()
438 _do_lookup(soinfo *si, const char *name, unsigned *base) in _do_lookup() argument
501 pid, si->name, name, s->st_value, lsi->name, lsi->base); in _do_lookup()
502 *base = lsi->base; in _do_lookup()
542 "si->base = 0x%08x\n", pid, name, s->st_value, si->base); in lookup()
555 if((unsigned)addr >= si->base && (unsigned)addr - si->base < si->size) { in find_containing_library()
[all …]
Ddlfcn.c112 unsigned ret = sym->st_value + found->base; in dlsym()
140 info->dli_fbase = (void*)si->base; in dladdr()
147 info->dli_saddr = (void*)(si->base + sym->st_value); in dladdr()
/bionic/libc/kernel/arch-arm/asm/
Ddiv64.h25 #define do_div(n,base) ({ register unsigned int __base asm("r4") = base; register unsigned lon… argument
/bionic/libc/stdio/
Dvfscanf.c112 int base; /* base argument to strtoimax/strtouimax */ in VFSCANF() local
125 base = 0; /* XXX just to keep gcc happy */ in VFSCANF()
216 base = 10; in VFSCANF()
221 base = 0; in VFSCANF()
230 base = 8; in VFSCANF()
236 base = 10; in VFSCANF()
244 base = 16; in VFSCANF()
276 base = 16; in VFSCANF()
311 base = 10; in VFSCANF()
484 if (base == 0) { in VFSCANF()
[all …]
/bionic/libc/kernel/common/linux/
Dtimer.h28 struct tvec_t_base_s *base; member
31 … .function = (_function), .expires = (_expires), .data = (_data), .base = &boot_tvec_bases,…
/bionic/libc/tools/zoneinfo/
DZoneInfo.java56 int base = 44; in make() local
60 transitions[i] = read4(data, base + 4 * i); in make()
61 base += 4 * ntransition; in make()
65 type[i] = data[base + i]; in make()
66 base += ntransition; in make()
72 gmtoff[i] = read4(data, base + 6 * i); in make()
73 isdst[i] = data[base + 6 * i + 4]; in make()
74 abbrev[i] = data[base + 6 * i + 5]; in make()
77 base += 6 * ngmtoff; in make()
79 return new ZoneInfo(name, transitions, type, gmtoff, isdst, abbrev, data, base); in make()
/bionic/libc/kernel/arch-sh/asm/
Dheartbeat.h20 void __iomem *base; member
/bionic/libc/kernel/arch-arm/asm/arch/
Dmcbsp.h31 #define OMAP_MCBSP_READ(base, reg) __raw_readw((base) + OMAP_MCBSP_REG_##reg) argument
32 #define OMAP_MCBSP_WRITE(base, reg, val) __raw_writew((val), (base) + OMAP_MCBSP_REG_##reg) argument
/bionic/libc/bionic/
Dmalloc_debug_leak.c508 void* base = dlmalloc(bytes + sizeof(AllocationEntry)); in leak_malloc() local
509 if (base != NULL) { in leak_malloc()
515 AllocationEntry* header = (AllocationEntry*)base; in leak_malloc()
521 base = (AllocationEntry*)base + 1; in leak_malloc()
526 return base; in leak_malloc()
618 void* base = leak_malloc(size); in leak_memalign() local
619 if (base != NULL) { in leak_memalign()
620 intptr_t ptr = (intptr_t)base; in leak_memalign()
622 return base; in leak_memalign()
629 ((void**)ptr)[-2] = base; in leak_memalign()
[all …]
/bionic/libc/tools/
Dchecksyscalls.py91 base = 10
95 base = 16
96 dict["ARM_"+m.group(1)] = int(offset_str, base) + 0x0f0000
/bionic/libc/kernel/arch-x86/asm/
Ddesc_32.h63 …fine GET_DESC_BASE(idx, gdt, base, lo_w, lo_b, hi_b) movb idx*8+4(gdt), lo_b; movb idx*8+7(gdt… argument
/bionic/libc/tzcode/
Dstrftime.c463 int base; local
469 base = TM_YEAR_BASE;
477 len = isleap_sum(year, base) ?
496 ++base;
505 --base;
506 yday += isleap_sum(year, base) ?
527 pt = _yconv(year, base, 0, 1,
529 } else pt = _yconv(year, base, 1, 1,
/bionic/libc/include/
Dinttypes.h257 intmax_t strntoimax(const char *nptr, char **endptr, int base, size_t n);
258 uintmax_t strntoumax(const char *nptr, char **endptr, int base, size_t n);

12